👽 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

2 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

· 3 weeks ago