On 05/23/2014 07:26 PM, Waldek Hebisch wrote:
> Ralf Hemmecke wrote:
>>
>> Let x be of type SExpression. I would like to test whether x is the Lisp
>> value T. I can do this via
>>
>>   foo(x: SExpression): Boolean ==
>>     TRUE: SExpression := EQ(x,x)$Lisp
>>     x = TRUE
> 
> I am affraid this is one of simplest ways.

I found out that currently also

  TRUE: SExpression := true pretend SExpression

would work. There could also be something like

  TRUE: SExpression := NOT(convert([]$List(SExpression)))$Lisp

I guess the first one is too dangerous and not future proof, right?
What about the second?

I'd be happy, to have access to a constant instead of having the need to
call a function. Well, in my case it's certainly not too time critical,
but anyway.

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to