Closed ngeiswei closed 5 months ago
car-atom raises an error on some non empty expression.
car-atom
Run the following code
!(let $s (stringToChars "ab") (car-atom $s))
['a']
[(Error (car-atom ('a' 'b')) "car-atom expects a non-empty expression as an argument")]
The following
!(stringToChars "ab")
correctly outputs
[('a' 'b')]
Moreover, the following
!(let $s ('a' 'b') (car-atom $s))
also correctly outputs
But for some unknown reason, sticking the two together fails.
For some reason, stringToChars wraps up the resulting expression into ValueAtom. Apparently, it should not be done this way. I'll fix it.
stringToChars
ValueAtom
What is the problem?
car-atom
raises an error on some non empty expression.How to reproduce the problem?
Run the following code
What would you normally expect?
What do you get instead?
What else do you have to say?
The following
correctly outputs
Moreover, the following
also correctly outputs
But for some unknown reason, sticking the two together fails.