2,951
edits
m (5 revisions imported: Migrate from miraheze) |
|||
Line 16: | Line 16: | ||
* The ranks of a [[user-defined function]] are infinite. | * The ranks of a [[user-defined function]] are infinite. | ||
It is not possible to modify the ranks of a function. Instead, apply the [[Rank operator]] to create a new function which has the given rank, but functions like the left operand on arrays of that rank. Notably, given a function is defined with a particular rank, it is impossible to make it work on arrays of a higher rank. Applying Rank with larger numbers will produce a function whose rank is higher, but the function's results will be no different: the inner function will still map over cells because it retains its rank. | It is not possible to modify the ranks of a function. Instead, apply the [[Rank operator]] to create a new function which has the given rank, but functions like the left operand on arrays of that rank. Notably, given a function is defined with a particular rank, it is impossible to make it work on arrays of a higher rank. Applying Rank with larger numbers will produce a function whose rank is higher, but the function's results will be no different: the inner function will still map over cells because it retains its rank. | ||
== External links == | |||
[[J]] resources: | |||
* [https://www.jsoftware.com/help/jforc/loopless_code_i_verbs_have_r.htm Loopless Code I: Verbs Have Rank] from ''J for C Programmers'' | |||
* [https://www.jsoftware.com/help/learning/07.htm#03 Intrinsic Ranks] from ''Learning J'' | |||
* [https://www.jsoftware.com/help/primer/verb_rank.htm Verb Rank] from the J Primer | |||
* [https://code.jsoftware.com/wiki/Vocabulary/EZRank#The_rank_of_a_verb The rank of a verb] from "Rank in a hurry" | |||
== References == | == References == | ||
<references /> | <references /> |