Page 1 of 1

term and prefix documentation

Posted: Sat Nov 13, 2010 11:22 am
by cormullion
Hi Lutz! Could you expand the documentation for term and prefix? From the descriptions, I can't really explain to myself what the problem is here:

Code: Select all

> (set 's "Fred")
"Fred"
> (term s)

ERR: symbol or context expected in function term : "Fred"
> (prefix s)

ERR: symbol expected in function prefix : s
> 
s is a symbol? Perhaps it's not supposed to work if it's not in a context, but I think it should be clear from the docs if that's the case.

Re: term and prefix documentation

Posted: Sat Nov 13, 2010 12:59 pm
by Lutz
In term and prefix the argument must evaluate to a symbol.