I want a function Int -> [[String]], trying to filter out the elements that have a specific value on the Inth spot. I thought I could combine filter and !! but I can't get it to work. So far I have:
filter (!! (== value)) rows
where value is a String and rows is a [[String]]. I thought it would take the Int combined with a [String] from rows and check if that particular entry equals value and then keep those rows, but it gets interpreted differently. Any help would be appreciated.
the Int– but with Int?