[Jprogramming] blunt verbs (tacit x and y)

Raul Miller rauldmiller at gmail.com
Tue Jan 7 19:31:51 UTC 2014


Cute!

-- 
Raul


On Tue, Jan 7, 2014 at 2:14 PM, Michal Wallace <michal.wallace at gmail.com> wrote:
> Hey all,
>
> I made an adverb ('xy') that lets trains refer to their arguments
> explicitly.
>
> Example:
>
>    f =: (Y * X + Y)xy
>    1 2 f 3 4
> 12 24
>
> X and Y behave like [ and ], but reference the arguments of the whole train:
>
>    0 1 (2: X 3:)xy 4 5
> 0 1
>    0 1 (2: Y 3:)xy 4 5
> 4 5
>
> I have no use for it yet, but it was fun to make. :)
>
> https://github.com/tangentstorm/tangentlabs/blob/master/j/tacitxy.ijs
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list