Skip to content

TinyAPL 0.3.0.0

Choose a tag to compare

@RubenVerg RubenVerg released this 20 May 13:22
· 598 commits to main since this release
  • Add a test suite
  • Add a documentation suite (available here)
  • Add inline comments ⟃⟄
  • Add Each ¨, Each-Left ᐵ and Each-Right ᑈ
  • Make First and Last disclose the value
  • Add Enlist ∊
  • Stringify arrays using array notation
  • Add LCM ∧ and GCD ∨
  • (fix) Correct complex floor, ceiling, remainder
  • (fix) Vector notation always boxes its arguments
  • (fix) Swap Root arguments
  • (fix) Fix Polar
  • (fix) Change Set Phase right argument
Supported primitives:
  ⍬
  + - × ÷ * ⍟ ○ √ ⌊ ⌈ ⸠ < ≤ = ≥ > ≠ ∧ ∨ ⍲ ⍱ ⊕ ⊗ ≡ ≢ ⍴ , ⊖ ⍮ ⊂ ⊃ ⊇ ↑ ↓ ⊣ ⊢ ⍳ ⍸ ⌿ | ∡ ℜ ℑ ∪ ∩ ~ § ∊
  ⍨ ⤈ ⤉ ⇟ ⇞ ¨ ᐵ ᑈ
  ⍤ ⍥ ∘ ⍛ ⊸ ⟜
Supported features:
* dfns {code}, d-monadic-ops _{code}, d-dyadic-ops _{code}_
  ⍺ left argument, ⍵ right argument,
  ⍺⍺ left array operand, ⍶⍶ left function operand, ⍵⍵ right array operand, ⍹⍹ right function operand,
  ∇ recurse function, _∇ recurse monadic op, _∇_ recurse dyadic op
  ■ early exit, : guard
  ⋄ multiple statements
* numbers: . decimal separator, ¯ negative sign, ⏨ exponent notation, ᴊ complex separator
* character literals: 'abc'
* string literals: "abc" with escapes using ⍘
* names: abc array, Abc function, _Abc monadic op, _Abc_ dyadic op, assignment with ←
* get ⎕ read evaluated input, get ⍞ read string input, set ⎕ print with newline, set ⍞ print without newline
* array notation: ⟨⋄⟩ vector, [⋄] higher rank array (combine major cells)
* comments: ⟃⟄ inline