apiel-cli 0.3.0

Interactive REPL for apiel, a subset of the APL programming language implemented in Rust.
apiel-cli-0.3.0 is not a library.

apiel-cli

Interactive REPL for apiel, a subset of the APL programming language implemented in Rust.

Install

cargo install apiel-cli

Usage

$ apiel-cli
>>> ⍳ 5
1 2 3 4 5
>>> +/ ⍳ 10
55
>>> 2 3 ⍴ ⍳ 6
1 2 3 4 5 6
>>> ⍴ 2 3 ⍴ ⍳ 6
2 3
>>> ⌽ 'hello'
olleh

Variables and functions persist across lines:

>>> data←⍳ 10
>>> +/ data
55
>>> double←{⍵×2}
>>> double 1 2 3
2 4 6
>>> {⍵≤1: ⍵ ⋄ ⍵×∇ ⍵-1} 5
120

See the apiel crate for the full support info.

Affiliation

Capstone project for the rustcamp by the Ukrainian Rust Community.