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?
This is in an IO() do
Like so: (This is in an IO() do block)
let gradeItemIndex = findIndex (\g -> (itemName g) == (itemName gradeItemP)) gradeItemList
let twoListsTuple = splitAt gradeItemIndex gradeItemList