Multisplit: Difference between revisions

Content added Content deleted
m (→‎{{header|Haskell}}: (Replaced one If with a `case ... of`))
m (→‎{{header|Haskell}}: (Pruned out a couple of redundant imports))
Line 676:
Or as a fold:
 
<lang haskell>multiSplitimport ::Data.List [String] -> String -> [(String, Stringfind, IntisPrefixOf)]
 
multiSplit :: [String] -> String -> [(String, String, Int)]
multiSplit ds s =
let lng = length s