You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why does splitAt return an array instead of a Tuple? #69
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?
Reacted by Gary Burgess, Harry Garrood and no longer on github
Activity
Use a Tuple in splitAt
Make splitAt return a record, fixes #69
Make splitAt return a record, fixes #69
Merge pull request #72 from purescript/splitAt-record