Re:FizzBuzz in J, Explained
by lokedhs on Saturday January 21, 2017 @10:22AM
(#13450398)
Works out-of-the box in GNU APL as well, if someone wants to try it with a free version of APL.
[ Parent
| on HN ]
Re:FizzBuzz in J, Explained
by RodgerTheGreat on Saturday January 21, 2017 @12:05PM
(#13450915)
To that end, my K version can be tweaked slightly to work with oK, an open-source interpreter based on k6:
{(x;"Buzz";"Fizz";"FizzBuzz")@2 2/~3 5!\:x}'1+!20
k6 swapped the argument order of "mod" and made change of base into an overload of "/", rather than a named builtin. See it in action here:http://johnearnest.github.io/ok/index.html?run=%20%7B%28x%3B...