[Jprogramming] Monadic verb chains: The J-way
Jan-Pieter Jacobs
janpieter.jacobs at gmail.com
Wed Aug 4 19:50:05 UTC 2021
If a verb is needed, one could easily make an explicit verb out of it as
well:
v1=: 3 :'|:>:*:y'
or
v2=: {{|:>:*:y}} NB. in J902 and onwards
I can imagine that this could be a lot shorter than a tacit version if the
chain gets long.
Best regards,
Jan-Pieter
On Wed, Aug 4, 2021, 20:33 Thomas Bulka <thomas.tb.bulka at gmail.com> wrote:
> Am Mi., 4. Aug. 2021 um 19:31 Uhr schrieb Raul Miller <
> rauldmiller at gmail.com
> >:
>
> > Tacit code may often be more concise than explicit code when you are
> > using the same named arguments multiple times.
> >
> > But that would not happen when you are using a name only once.
> >
>
> Hi Raul,
>
> though this is obviously true, I never thought about it like that before.
> In any case, I'll try to take it as a rule of thumb.
>
> Regards,
>
> Thomas
>
> PS. @Elijah: Thanks very much for your input, too!
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list