I am looking for a function which breaks a string (based on own conditions for example "ab", "c", "3", "21") "abc321c" into this string ("ab","c","3","21","c").
The break function in haskell takes only one condition(and only takes a char and not a string) and only apply it to the first char in the list.
*Main> break ('-'==) "teasd-das-d"
("teasd","-das-d")
"abc321"
split the way it was? – ApproachingDarknessFish