?

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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to