jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: any in jed undefined?


On 25.05.06, Jörg Sommer wrote:
> Hi,
> 
> why is any() in jed undefined?
> 
> % jed -batch -f 'any([0,1])'
> any is undefined

Until we have any() available in Jed, you can use wherefirst() as
workaround, 

define any(a)
{
   return wherefirst(a) != NULL;
}   

jed -batch -f 'message(string(wherefirst([0,1,2])))'
jed -batch -f 'message(string(wherefirst([0,0,0])))'

Günter

-- 
Milde ife.et.tu-dresden.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]