sanctuary-js / sanctuary

:see_no_evil: Refuge from unsafe JavaScript
https://sanctuary.js.org
MIT License
3.03k stars 94 forks source link

array: generalize S.joinWith #608

Closed davidchambers closed 4 years ago

davidchambers commented 5 years ago

/cc @syves

davidchambers commented 5 years ago

Let's resolve #360 before deciding whether to merge this pull request.

davidchambers commented 4 years ago

The correspondence between S.splitOn and S.joinWith is valuable and should be preserved.

S.splitOn  :: String -> String -> Array String
S.joinWith :: String -> Array String -> String