4,494
edits
m (Add Operators and Functions to influences) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 20: | Line 20: | ||
== Primitives == | == Primitives == | ||
NARS was an extension of [[APL*PLUS]], which used the [[APL.SV]] primitive set, except for [[Execute]] (< | NARS was an extension of [[APL*PLUS]], which used the [[APL.SV]] primitive set, except for [[Execute]] (<syntaxhighlight lang=apl inline>⍎</source>). Only new primitives are shown here, with existing cases in parentheses. | ||
=== Functions === | === Functions === | ||
Line 27: | Line 27: | ||
! Glyph !! Monadic !! Dyadic | ! Glyph !! Monadic !! Dyadic | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⊂</source> || [[Enclose]] || [[Partitioned Enclose]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⊃</source> || Disclose or [[First]] || [[Pick]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⊤</source> || [[Type]] || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>≡</source> || [[Simple (NARS)]] || [[Equivalent]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>≢</source> || [[Not-Simple]] || [[Inequivalent]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>↓</source> || [[Split]] || ([[Drop]]) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>↑</source> || [[Mix]] || ([[Take]]) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∪</source> || [[Unique]] || [[Union]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>~</source> || || [[Set Difference]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∩</source> || || [[Intersection]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍪</source> || || [[Catenate]] along the First Dimension | ||
|} | |} | ||
Line 57: | Line 57: | ||
! Syntax !! Monadic call !! Dyadic call | ! Syntax !! Monadic call !! Dyadic call | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f/</source> || ([[Reduction]]) || Dyadic Reduction ([[Windowed Reduction]]) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f\</source> || ([[Scan]]) || Dyadic Scan | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f¨</source> ||colspan=2| [[Each]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f⍨</source> || || [[Commute]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f⍣B</source> || [[Power (operator)|Power]] || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f⍣∘</source> || [[Power Limit]] || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f⍣∘</source> || [[Power Series (operator)|Power Series]] || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f∘g</source> ||colspan=2| Composition ([[Beside]]) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>A∘g</source> ||rowspan=2| Composition ([[Bind]]) || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f∘B</source> || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>f⍢g</source> ||colspan=2| [[Dual]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∘.g</source> || Function Table || ([[Outer Product]]) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>A⍡</source> || || [[Convolution operator]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>A∘/</source> || || [[Mask]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>A∘\</source> || || [[Mesh]] | ||
|- | |- | ||
!colspan=3| [[Direct definition (NARS)|Direct definition]] | !colspan=3| [[Direct definition (NARS)|Direct definition]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∘∇B</source> || [[Monadic]] || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>A∇∘</source> || || [[Dyadic]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>A∇B</source> ||colspan=2| [[Ambivalent]] | ||
|} | |} | ||
Line 100: | Line 100: | ||
* [[Stranding]] and [[stranded assignment]] syntax were added. | * [[Stranding]] and [[stranded assignment]] syntax were added. | ||
* The primitive array [[Zilde]] was introduced. | * The primitive array [[Zilde]] was introduced. | ||
* The assignment arrow < | * The assignment arrow <syntaxhighlight lang=apl inline>←</source> with nothing to the left was used to indicate [[Sink]], which prevented display of a value. | ||
* [[Defined function]]s were extended to allow an ambivalent case. | * [[Defined function]]s were extended to allow an ambivalent case. | ||
* [[Choose indexing]] was added. | * [[Choose indexing]] was added. |