Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/List/ElemIndex.hs
module List where import FindIndex elemIndex :: Eq a => a -> [a] -> Maybe Int elemIndex x = findIndex (x ==)