On Thu, Sep 15, 2011 at 4:35 PM, Raul Miller <[email protected]> wrote: > X f^:(> *. (24 > [) *. 0 < ])"0/ Y
P.S. note that this expression uses Y for the result when f is not relevant. If you want different behavior, you can change the expression to: X g`f@.(> *. (24 > [) *. 0 < ])"0/ Y Here, g gives the result for the cases where f is not relevant. For example, 1 2 3 _:`*@.(> *. (24 > [) *. 0 < ])"0/ 1 2 3 _ _ _ 2 _ _ 3 6 _ Here: f is multiply and g is a function which always produces an infinite result. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
