If you know of cases where 5!:5 produces an erroneous result, please put them on the bug list.  I have fixed all that I have seen.

Of course, ". cannot produce a non-noun result.

Henry Rich

On 2/4/2020 12:15 PM, Raul Miller wrote:
Perhaps also of note is that J has supports several forms of
serialization (as well as similar operations), though they each have
their limitations.

If you are working with nouns, 5!:5 is probably the best serialization
mechanism (and, when working with nouns, 5!:6 is equivalent):

    X=: i.2 3
    5!:5<'X'
i.2 3
    5!:6<'X'
i.2 3

Remember that you need to parenthesize this kind of result, at least
in some contexts.

That said, note that -- if you're going to be using 5!:5 (or 5!:6) for
things that are not nouns -- its results are designed for use in 0!:
contexts and not all of the results will work in ". contexts.

FYI,


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

Reply via email to