[Jprogramming] fcase.

Henry Rich henryhrich at gmail.com
Thu Mar 2 03:44:39 UTC 2017


?

change your pcase. to fcase.; doesn't it do what you say?  Is there 
something your proposed idea would do that the current syntax doesn't do?

Henry Rich

On 3/1/2017 10:14 PM, 'Pascal Jasmin' via Programming wrote:
> Do not see the usefulness of the fcase. option.  see example here:
> http://www.jsoftware.com/help/dictionary/csel.htm
>
>
> I would see a "passthrough case" pcase. usefulness
>
> f2=: 3 : 0
> t=. ''
> select. y
> case.  1 do. t=.t,'one '
> pcase. 2 do. t=.t,'two '
> case.  2;3 do. t=.t,'three '
> case. 2;3;4 do. t=.t,'four '
> end.
> )
>
> f2 2
> two three
>
> a pcase. statement would not abort search after a match.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list