Question: Programming a recursive search

Hello everyone,

 

This is probably a simple question for most, but I am not very familiar with programming in maple.  I need to create a program that will find the position of a given value in a list.

 

Example: L= { 1,3,5,6,7,8,9,11,12}

a)When x = 7

b) When x = 12

etc.

 

Any help would be appreciated!

Please Wait...