On Jan 10, 2006, at 2:22 PM, [EMAIL PROTECTED] wrote:

In python we have the handy "in" operator:

  if 3 in [1,2,3]: ...

Is there a similar function in MochiKit? I looked around and couldn't
see one, so I wrote on myself.

The new find or findIdentical functions would suit this purpose:

if (find([1, 2, 3], 3) != -1) {
        ...
}

-bob


Reply via email to