Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 612 Bytes

scan.md

File metadata and controls

30 lines (15 loc) · 612 Bytes

View this file with results and syntax highlighting here.

Grave (`)

𝔽` 𝕩: Scan

→full documentation

Scan over 𝕩 with 𝔽 from left to right, producing intermediate values.

    +` 1‿2‿3

    ⟨1, 1+2, (1+2)+3⟩

    -` 1‿2‿3

    ⟨1, 1-2, (1-2)-3⟩

𝕨 𝔽` 𝕩: Scan With initial

Monadic scan, but use 𝕨 as initial left argument.

    5 +` 1‿2‿3

    ⟨5+1, (5+1)+2, ((5+1)+2)+3⟩

    5 -` 1‿2‿3

    ⟨5-1, (5-1)-2, ((5-1)-2)-3⟩