Skip to main content

Examples

warning

The web version of aya has known bugs and is still in development

ASCII Train

Print ASCII art of a train using the asciiart standard library module.

asciiart: ______ ______ ______ | | | | | | ()--() ~ ()--() ~ ()--()

Collatz Sequence

[ 0 1 7 2 5 8 16 3 19 6 ]

2D Vector Type

Define a 2D vector type with print and operator overloads. Note that this is supported by Aya natively using standard lists [x y].

v is <3,4> v.len is 5 v+w is <8,12>

Editor Features

info
  • Hover over an operator to view documentation
  • Shift+Enter or to run
  • Automatic linting, syntax highlighting, auto-indent, undo history and more supported using CodeMirror

Linter