Implement cons* in Scheme
Issue #26
new
scheme>>> cons* 'a 'b '(c d)
Traceback (most recent call last):
File "stdin", line 1, col 1
RunTimeError: unbound variable 'cons*'
Comments (7)
-
-
You have to call cons like a function (cons ...).
-
reporter - edited description
sorry, I didn't realize that it would take out the asterisks.
-
reporter Also, I got the example code from here.
-
reporter According to the scheme.com example (cons* 'a 'b '(c d)) should return (a b c d).
scheme>>> (cons* 'a 'b '(c d))
Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'cons*' -
Interesting, then the issue should be "Implement cons* in Scheme", give the link to the reference, and show
1) what you get 2) what you expected to get
That will help make this very clear what the issue is. Thanks!
-
- marked as enhancement
- Log in to comment
This one is user error, I think. You need parens around it, and as far as I know it only takes two arguments: