BEHOLD: The most haskell I've ever written ever!
firstHalf el lst = if el `elem` halfList then True else False where halfList = take (length lst `div` 2) lst
2 months ago · 👍 ruby, vincent
Actions
1 Reply
You can use code blocks to show syntax highlighting!
firstHalf el lst =
if el `elem` halfList
then True
else False
where
halfList = take (length lst `div ` 2) lst
· 3 weeks ago