Why does splitAt return an array instead of a Tuple?
MichaelXavier opened this issue · 0 comments
MichaelXavier commented
splitAt :: Int -> String -> Maybe (Array String). Looking at the FFI, it returns just([s.substring(0, i), s.substring(i)]) : nothing;, always either a Just with a 2-length array or a Nothing. Wouldn't a Tuple be more appropriate?