I need a predicate that given a list of lists (matrix)
removeElementM(Line,Column,List,NewList)
removes the (Line,Column) element.
For example given the List(L):
([a,b,c,d],
[e,r,t,y],
[u,i,o,t])
removeElementM(2,2,L,X) would return
X = [[a,b,c,d],[e,r,t,y],[u,i,t]]
I already have the stopping predicate
removeElementM(0,0,[[_|T1]|T],[T1|T]).
but cant’t come up with the solution for the other one…
Something like that :