3,038
edits
m (Navbox and function characteristics category) |
m (→Documentation: Encode spaces in URL) |
||
(5 intermediate revisions by 2 users not shown) | |||
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]] | ||
|} | |} | ||
Line 35: | Line 35: | ||
=== Documentation === | === Documentation === | ||
* [ | * [https://help.dyalog.com/latest/index.htm#Language/Introduction/Variables/Prototypes%20and%20Fill%20Items.htm Dyalog] | ||
{{APL features}}[[Category:Function | {{APL features}}[[Category:Function characteristics]] |