How to fix an unbound variable error in scheme?
Posted: Tue Nov 07, 2017 1:00 am
I have written the following program in scheme which should receive a list of numbers and it should then form the largest number possible from that:
and I would like it to behave in the following way: (my-procedure 7 4 43 123) //is entered by me
and the output should be 7443123 for example.
However when I try to compile it, I get the following error: unbound variable "cat"
is there something I missed.
Any help is greatly appreciated
Thanks in advance
Code: Select all
(define (my-procedure lsts)
(map (lambda (xs)
(string->number
(apply cat(sort xs my-compare))))
lsts))
and I would like it to behave in the following way: (my-procedure 7 4 43 123) //is entered by me
and the output should be 7443123 for example.
However when I try to compile it, I get the following error: unbound variable "cat"
is there something I missed.
Any help is greatly appreciated
Thanks in advance