FizzBuzz: Difference between revisions
Content added Content deleted
(→Insitux: implementation) |
Rumwantscake (talk | contribs) (→BQN: Added example using the choose (◶) combonator) |
||
Line 1,319: | Line 1,319: | ||
Using the Catch modifier for flow control |
Using the Catch modifier for flow control |
||
<syntaxhighlight lang="bqn">((∾´"fizz"‿"buzz"/˜0=3‿5|⊢)⎊⊢)¨1+↕100</syntaxhighlight> |
<syntaxhighlight lang="bqn">((∾´"fizz"‿"buzz"/˜0=3‿5|⊢)⎊⊢)¨1+↕100</syntaxhighlight> |
||
Using the Choose Combonator with a rank 2 array |
|||
<syntaxhighlight lang="bqn">(3‿5 (0=|)◶[⊢‿"fizz","buzz"‿"fizzbuzz"] ⊢)¨ 1+↕100</syntaxhighlight> |
|||
=={{header|Bracmat}}== |
=={{header|Bracmat}}== |