4,494
edits
m (Text replacement - "</source>" to "</syntaxhighlight>") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 1: | Line 1: | ||
A '''fill element''' is an [[element]] used for the result of a [[function]] when no element from the [[argument]] or another relevant array is used. The fill element is usually that array's [[prototype]]. [[J]] allows the fill to be specified using the fit conjunction < | A '''fill element''' is an [[element]] used for the result of a [[function]] when no element from the [[argument]] or another relevant array is used. The fill element is usually that array's [[prototype]]. [[J]] allows the fill to be specified using the fit conjunction <syntaxhighlight lang=j inline>!.</syntaxhighlight>, an analogue of [[Variant]]. | ||
Fills are one way to convert an [[empty array]] into a non-empty array. [[Reduction]] along an empty [[axis]] also produces such a transition, but in this case an [[identity element]] for the reducing function is used instead of a fill. | Fills are one way to convert an [[empty array]] into a non-empty array. [[Reduction]] along an empty [[axis]] also produces such a transition, but in this case an [[identity element]] for the reducing function is used instead of a fill. | ||
Line 10: | Line 10: | ||
! Glyph !! Monad !! Dyad | ! Glyph !! Monad !! Dyad | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍴</syntaxhighlight> || || [[Reshape]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>↑</syntaxhighlight> || [[Mix]] (or <syntaxhighlight lang=apl inline>⊃</syntaxhighlight>) || [[Take]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>/</syntaxhighlight> and <syntaxhighlight lang=apl inline>⌿</syntaxhighlight> || || [[Replicate]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>\</syntaxhighlight> and <syntaxhighlight lang=apl inline>⍀</syntaxhighlight> || || [[Expand]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍤</syntaxhighlight> ||colspan=2| [[Rank operator]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌸</syntaxhighlight> ||colspan=2| [[Key]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌺</syntaxhighlight> ||colspan=2| [[Stencil]] | ||
|} | |} | ||