Talk:Deal: Difference between revisions
(Created page with "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&s...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
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 < | 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 <syntaxhighlight lang=apl inline>?⍤0</syntaxhighlight>. [[User:Adám Brudzewsky|Adám Brudzewsky]] ([[User talk: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. [[User:Bubbler|Bubbler]] ([[User talk:Bubbler|talk]]) 09:18, 4 June 2020 (UTC) |
Latest revision as of 10:40, 11 September 2022
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)