Stair-climbing puzzle: Difference between revisions
m
→{{header|J}}: simplify
(→{{header|J}}: add alternative formulation) |
m (→{{header|J}}: simplify) |
||
Line 165:
isNotUpOne =: -.@(+/@])
step_up=:
Note that J's verbs (functions) must always take an argument i.e. there is no such thing as a niladic verb. Verbs that ignore their arguments (e.g. <code>step</code>) achieve the same effect.
|