Unifying Traditional Functions and D-Fns in APL#
summary
APL# attempts a concrete unification of traditional line-numbered T-Fns and modern D-Fns by implementing a single curly-braced function form that supports ambivalent functions (monadic/diadic by signature or by call), separates naming from definition, and runs on the .NET-targeted Dyalog APL# project. It preserves specific behaviors: last expression returns, unassigned results are ignored, local names by default with explicit global assignment, control-structures-as-expressions, operators using curly-brace operends, and default left-arg via right-tack. Examples include gcd, quadratic real roots, tree rotation and a Brain interpreter; spec is work in progress.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 3:29T-Fn (Traditional APL fn)
- 10:39Specification vs. naming
- 14:29A-Fns (APL# functions)
- 21:46Multi-line A-Fn
- 27:02Ambivalent Functions
- 34:22Function Termination
- 36:58Tuples
- 40:56Local Names
- 42:00Control Structure Expressions
- 43:35Guard Expressions
- 45:19Functions and Operators
- 47:01an example
- 50:13Summary
