Take: Difference between revisions

Jump to navigation Jump to search
No change in size ,  19:26, 14 November 2019
m
no edit summary
Miraheze>Marshall
Miraheze>Adám Brudzewsky
mNo edit summary
Line 1: Line 1:
{{Built-in|Take|↑}} is a [[Primitive function|primitive]] [[dyadic function]] which shortens or extends the right [[argument]] array along one or more [[Axis|axes]]. The [[vector]] left argument indicates the lengths of result axes, with a sign to denote whether [[element]]s should be taken starting from the beginning or end of each axis. Take was introduced in [[APL\360]] with the requirement that the left argument length match the right argument rank, and was extended in [[SHARP APL 19.0]] to allow short left arguments. It is closely related to [[Drop]], which removes the parts of each axis that Take would include.
{{Built-in|Take|↑}} is a [[Primitive function|primitive]] [[dyadic function]] which shortens or extends the right [[argument]] array along one or more [[Axis|axes]]. The [[vector]] left argument indicates the lengths of result axes, with a sign to denote whether [[element]]s should be taken starting from the beginning or end of each axis. Take was introduced in [[APL\360]] with the requirement that the left argument length match the right argument rank, and was extended in [[SHARP APL]] 19.0 to allow short left arguments. It is closely related to [[Drop]], which removes the parts of each axis that Take would include.


== Examples ==
== Examples ==

Navigation menu