
28 Feb
2015
28 Feb
'15
2:08 p.m.
On 02/27/2015 03:51 PM, Geoffrey Bays wrote:
Hi. An elementary question here about two functions in Data.List: how to use a value from findIndex which returns a Maybe Int, and then use that result in splitAt which takes a regular Int?
Once you understand why you can't feed a (Maybe Int) to a function that takes an Int, throw it all away and use `splitOn` from the "split" package instead =) https://hackage.haskell.org/package/split-0.2.2/docs/Data-List-Split.html