Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Drscheme using lazyscheme

  1. Jul 22, 2008 #1
    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.
  2. jcsd
  3. Jul 22, 2008 #2
    Re: drscheme

    Append is only for appending an element to a list, not for joining two lists.
  4. Jul 22, 2008 #3
    Re: drscheme

    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>)
  5. Jul 22, 2008 #4
    Re: drscheme

    Sorry, I am not familiar with the lazyscheme dialect; I didn't realize it had a different version of append.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Drscheme using lazyscheme
  1. Use of pointers (Replies: 3)

  2. Using Cython (Replies: 1)