On 3/6/07, ramacd <[EMAIL PROTECTED]> wrote:
fb =: (verb : '((15 3 5|y)i.0){''fizzbuzz'';''fizz'';''buzz'';y')"0

Here's a tacit version (which also eliminates the boxing
and capitalizes the two nonsense words):

  FB=:((0 i.~15 3 5|]){::'FizzBuzz';'Fizz';'Buzz';":)"0

This is as short as I've seen.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to