4,505
edits
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 7: | Line 7: | ||
│Hi│Earth│ | │Hi│Earth│ | ||
└──┴─────┘ | └──┴─────┘ | ||
</ | </syntaxhighlight> | ||
{{Works in|[[Dyalog APL]], [[Extended Dyalog APL]]}} | {{Works in|[[Dyalog APL]], [[Extended Dyalog APL]]}} | ||
== Non-Boolean left argument == | == Non-Boolean left argument == | ||
Line 16: | Line 16: | ||
││Hi│││Earth│ | ││Hi│││Earth│ | ||
└┴──┴┴┴─────┘ | └┴──┴┴┴─────┘ | ||
</ | </syntaxhighlight> | ||
== Short left argument == | == Short left argument == | ||
The dialects that support this extension also allow omission of trailing zeros, which is useful if the partitioning vector is generated by [[indices#Inverse|where's inverse]]: | The dialects that support this extension also allow omission of trailing zeros, which is useful if the partitioning vector is generated by [[indices#Inverse|where's inverse]]: | ||
Line 26: | Line 26: | ||
││Hi│││Earth│ | ││Hi│││Earth│ | ||
└┴──┴┴┴─────┘ | └┴──┴┴┴─────┘ | ||
</ | </syntaxhighlight> | ||
== Long left argument == | == Long left argument == | ||
Additional trailing empty divisions are created by adding an additional division count corresponding to the position beyond the end of the right argument: | Additional trailing empty divisions are created by adding an additional division count corresponding to the position beyond the end of the right argument: | ||
Line 34: | Line 34: | ||
│Hi│Earth││ | │Hi│Earth││ | ||
└──┴─────┴┘ | └──┴─────┴┘ | ||
</ | </syntaxhighlight> | ||
== Split into lengths == | == Split into lengths == | ||
This above extensions allow a simple definition of a split-into-lengths function: | This above extensions allow a simple definition of a split-into-lengths function: | ||
Line 45: | Line 45: | ||
│How│Are│You?│ | │How│Are│You?│ | ||
└───┴───┴────┘ | └───┴───┴────┘ | ||
</ | </syntaxhighlight> | ||
== See also == | == See also == | ||
* [[Partition]] | * [[Partition]] |