[Jprogramming] Constant functions

Dan Bron j at bron.us
Mon Feb 15 11:13:31 HKT 2010


Roger:
>    (0&, + ,&0)^:(i.10) 1

Viktor:
> Variation:
>     0 (, + ,~)^:(i.10) 1

Further variation:

	   (<10) 0&(, + ,~) 1

And hey, Ian, here's an example of where the constant verbs are still useful, despite the introduction of the NVV train:

	   bc =:  < 0&(, + ,~) 1:    NB.  Try  bc 10  .

Note that without  1:  I would've had to write   1"_  (which is less tasteful).

-Dan



More information about the Programming mailing list