I have an array: Array[[List[Int]]](81) ( this is a val )
I want to break it down say row-wise and if any of the elements in that particular row has only one element in the list, say b.size = 1, then I want to remove that element in 'b', from every other list in that particular row of the Array.
I'm not sure, how to go about considering just the first 9 elements, then the next 9 elements from the Array, given the constraint that I don't use mutable variables. ( so just vals and not vars ).
So far: I have a function that accepts the list and the element to be removed from it. But, how do I go about iterating through every row in the above array or every column in the array, and go back to the starting of the row, if I find a list with just one element, to update the other elements in the list, is my question.