data store search

This commit is contained in:
nora 2021-08-17 21:39:45 +02:00
parent eda0cba251
commit 94ed1401fe
4 changed files with 20 additions and 1 deletions

View file

@ -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