Course Solutions Uncategorized (Solved) : Need Help Lisp Create Recursive Function Alphabet Takes List Integers 1 26 Range Returns L Q26380245 . . . .

(Solved) : Need Help Lisp Create Recursive Function Alphabet Takes List Integers 1 26 Range Returns L Q26380245 . . . .

 

Need help on lisp.

Create a recursivefunction ALPHABET that takes a list of integers in the1-26 range. It returns a list of the same length with thecorresponding alphabet letter substituted for the integer. Do errorchecking on the input. Return the empty list if the list is alreadyempty.

[42]> (alphabet ‘(1 2 26))

(a b z)

[43]> (alphabet ‘())

NIL

[44]> (alphabet “foo”)

Error in ALPHABET function. Parameter must be a list, but wasgiven “foo”

NIL

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post