Differences between revisions 5 and 6
 ⇤ ← Revision 5 as of 2006-05-22 21:01:40 → Size: 410 Editor: OlegKobchenko Comment: short circuit boolean "and" ← Revision 6 as of 2008-12-08 10:45:34 → ⇥ Size: 412 Editor: anonymous Comment: converted to 1.6 markup Deletions are marked like this. Additions are marked like this. Line 10: Line 10: For example, the [:Essays/Fibonacci Sequence:Fibonacci numbers] can be computed For example, the [[Essays/Fibonacci Sequence|Fibonacci numbers]] can be computed Line 13: Line 13: [[BR]]Tacit ''if'' is also [:Essays/Short Circuit Boolean:short circuit boolean] operator ''and''. <
>Tacit ''if'' is also [[Essays/Short Circuit Boolean|short circuit boolean]] operator ''and''. Line 16: Line 16: [[BR]] <
>

Find a tacit expression that computes f y if y is greater than 1, otherwise just return y .

Solution:

`f^:(1&<)`

For example, the Fibonacci numbers can be computed as (-&2 +&\$: -&1) ^: (1&<)

Tacit if is also short circuit boolean operator and.

Contributed by RogerHui.

Puzzles/Tacit If (last edited 2008-12-08 10:45:34 by anonymous)