๐ฝ idx2
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
7 months ago ยท ๐ ruby, vincent
Actions
๐ Join Station
1 Reply
๐ฝ vincent
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
ยท 6 months ago