Fetch me a fork!
Am I correct in saying that the documentation for Fetch says nothing of
fetching from what is a train but what looks like a verb list. Some
experiments:
(0 {:: <:;];>:) 12
11
(1 {:: <:;];>:)12
12
(2 {:: <:;];>:)12
13
NB. does the "linking" verb have to be ; ? Nope:
(0 {:: <:,],>:) 12
11
Lovely nugget, that.
------------------------------------------------------------------------
|\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED] |
|\ | | The only real problem with APL is that
BSc(Math) UNBF'83 | it is "still ahead of its time."
Sapere Aude | - Morten Kromberg
Natural Born APL'er | Demo website: http://156.34.77.41/
-----------------------------------------------------(INTP)----{ gnat }-
----- Original Message -----
From: "Raul Miller" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Wednesday, March 07, 2007 1:24 AM
Subject: Re: [Jprogramming] FizzBuzz
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm