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
(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