inl_z_ =: (cocurrent@] ".@] [)"1 0 '(] (,<) 4!:0)"0@:nl '''' ' inl 'z'
the number code is from this chart (4!:0) http://www.jsoftware.com/help/dictionary/dx004.htm ________________________________ From: Herbert Weissenbaeck // Privat <[email protected]> To: [email protected] Sent: Tuesday, April 4, 2017 12:06 PM Subject: Re: [Jprogramming] type/domain of an argument thank you. most helpful. works for bools, ints, floats and the like. related question: how would I now figure out which of the names in a locale refer to functions? > On 2 Apr 2017, at 14:43, 'Pascal Jasmin' via Programming > <[email protected]> wrote: > > datatype or 3!:0 > > > datatype 3 4.1 0 > > > > > ________________________________ > From: Herbert Weissenbaeck // Privat <[email protected]> > To: [email protected] > Sent: Sunday, April 2, 2017 8:33 AM > Subject: [Jprogramming] type/domain of an argument > > > > quick beginner's question: > > how can i test whether an x or y argument is an array of int or an array of > float or an array of char or of any other type (to avoid domain errors and > handle different types differently in functions)? > > thank you > > herbert > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
