Talk:Deal

From APL Wiki
Jump to navigation Jump to search

I don't think J's Deal can be called a scalar function, both because J doesn't have the concept (arithmetic verbs don't penetrate boxes) and because it doesn't give a scalar&scalar→scalar mapping, but rather increases the rank by 1. It is simple defined as ?⍤0. Adám Brudzewsky (talk) 08:56, 4 June 2020 (UTC)

I re-read the scalar function article. J is a flat array language, and the article says "in flat array languages they usually do not apply inside boxes" and doesn't say anything about return values. So I assumed that rank 0 in J is equivalent to a scalar function regardless of the return value. Nevertheless, I guess the line is better suited to Examples with an in-code example of generating multiple permutations at once. Bubbler (talk) 09:18, 4 June 2020 (UTC)