mirror of
https://github.com/Noratrieb/idris-learning.git
synced 2026-01-14 21:15:02 +01:00
data store search
This commit is contained in:
parent
eda0cba251
commit
94ed1401fe
4 changed files with 20 additions and 1 deletions
|
|
@ -42,4 +42,13 @@ mutual
|
|||
isOdd Z = False
|
||||
isOdd (S k) = isEven k
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
displayList : Show a => List a -> String
|
||||
displayList xs = "[" ++ showItems xs ++ "]"
|
||||
where
|
||||
showItems : Show a => List a -> String
|
||||
showItems [] = ""
|
||||
showItems (x :: []) = show x
|
||||
showItems (x :: next) = show x ++ "," ++ showItems next
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue