@[&0 doesn't work with negative arguments?
The phrasex f@[&0 yis equivalent tof^:x y, but only if x is positive. Can anyone guess why?
Posted Sep 25, 2017, 9:09 AM UTC
22
The phrasex f@[&0 yis equivalent tof^:x y, but only if x is positive. Can anyone guess why?
Posted Sep 25, 2017, 9:09 AM UTC
Because third argument to bond is repetition. J doesn't try to figure out the inverse in this case like it would do with
^:but just appliesfxtimes.Thanks. I can use
f@]^:[apparently.