Define a function in Scheme which takes a list of numbers and a scalar and returns the rest of the list after the first occurrence of the scalar that was passed. An empty list should be returned if the value doesn't exist. For example,
(list-past-scalar '(5 2 8 3 1 9 2 3) 3) #returns (1 9 2 3)
(list-past-scalar '(37 18 38 65 90) 100) #returns ()
PROGRAM:
}
Get Answers For Free
Most questions answered within 1 hours.