Home / Expert Answers / Computer Science / 3-write-a-tail-recursive-function-that-takes-a-list-and-a-symbol-and-returns-the-position-of-the-pa982

(Solved): 3 - Write a tail-recursive function that takes a list, and a symbol, and returns the position of the ...



3 - Write a tail-recursive function that takes a list, and a symbol, and returns the position of the symbol in the list. Positions start at 0 . The function returns -1 if it does not find the symbol in the list. The following shows a sample use of the function, >( find-pos '(a b c d) 'c) 2


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe