2,954
edits
mNo edit summary |
(→Anonymous functions: J 9.02 beta adds yet another "direct definition") |
||
Line 20: | Line 20: | ||
In the 1990s array language designers began experimenting with forms that allowed a function to be created without ever giving it a name, often influenced by [[wikipedia:Lisp (programming language)|Lisp]]'s lambda expressions. Such anonymous forms appeared in several languages, including an early but less influential form in [[NARS]]: | In the 1990s array language designers began experimenting with forms that allowed a function to be created without ever giving it a name, often influenced by [[wikipedia:Lisp (programming language)|Lisp]]'s lambda expressions. Such anonymous forms appeared in several languages, including an early but less influential form in [[NARS]]: | ||
* 1981: [[NARS]] defines its own type of [[direct definition (NARS)|direct definition]] written with two strings joined by the operator <source lang=apl inline>∇</source> | * 1981: [[NARS]] defines its own type of [[direct definition (NARS)|direct definition]] written with two strings joined by the operator <source lang=apl inline>∇</source> | ||
* 1990: [[J]] uses the <source lang=j inline>:</source> operator for "explicit definition" | * 1990: [[J]] uses the <source lang=j inline>:</source> operator for "explicit definition"; in 2020 it adds a more [[dfn]]-like "direct definition"<ref>Jsoftware. [https://code.jsoftware.com/wiki/Vocabulary/DirectDefinition Direct Definition]. Accessed 2020-10-24.</ref> syntax with doubled curly braces | ||
* 1994: [[K]]'s functions are written with curly braces | * 1994: [[K]]'s functions are written with curly braces | ||
* 1996: [[Dyalog APL]] adds [[dfn]]s, another kind of functions written with curly braces | * 1996: [[Dyalog APL]] adds [[dfn]]s, another kind of functions written with curly braces |