What is the issue with executing append in Drscheme using lazyscheme?

  • Thread starter Thread starter ddatta8
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
ddatta8
Messages
2
Reaction score
0
I am trying to execute the code (append '(a b) '(c d)) in drscheme using lazyscheme and I am getting the following output: (a . #<promise:...cts/lazy/lazy.ss:453:38>). What is the problem? Thanks.
 
Physics news on Phys.org


Append is only for appending an element to a list, not for joining two lists.
 


Thanks but even if I do (append 'a '(c d)) /(append '(a b) 'c),
I get the following error messages:
. . car: expects argument of type <pair>; given a/(a . #<promise:...cts/lazy/lazy.ss:453:38>)
 


Sorry, I am not familiar with the lazyscheme dialect; I didn't realize it had a different version of append.