write a maple procedure called Position which returns the first position of i of an element x in a list of value L.
That is, Position( x, L) should return an integer i>0 such that L[i] = x. If x is not in List L, 0 is returned.
Please use 5 very different examples to check various possibilities.
Comments
Leave a comment