Multisplit: Difference between revisions

(→‎{{header|JavaScript}}: ES6 (without importing Underscore, and generalising to allow for any set of delimiters))
Line 676:
Or as a fold:
 
<lang haskell>moduleimport MultisplitData.Maybe where(isNothing, fromJust)
 
import Data.Maybe (isNothing, fromJust)
import Data.List (find, isPrefixOf)
 
9,659

edits