Scheme Exercises
back to exercise list
previous next
Group: Exercise: 25/48
remove-one:
Remove one of the elements of a 3 element list
Create the function remove-one(alist,nth) that will remove the nth element of a 3-3-element list. nth will be either 1, 2 or 3. For instance: (remove-one '(p q r) 3) -> (p q) (remove-one '(fred george me) 1) -> (george me)
|