GeoffreyMany Thanks,// does not compile obviouslyand then use that result in splitAt which takes a regular Int?Hi.how to use a value from findIndex which returns a Maybe Int,
An elementary question here about two functions in Data.List:This is in an IO() doLike so: (This is in an IO() do block)
let gradeItemIndex = findIndex (\g -> (itemName g) == (itemName gradeItemP)) gradeItemList
let twoListsTuple = splitAt gradeItemIndex gradeItemList
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners