Skip to content

Rosetta Code

ghūl solutions to Rosetta Code tasks. Each can be edited and run here: click the pencil, change it, and run it in your browser.

starting out

Short programs, and the shapes every language has to have.

functions and closures

Functions as values: passed, returned, captured, and calling themselves.

types and pattern matching

Unions, traits, generics and operators: modelling data and taking it apart again.

generators and laziness

Sequences produced a value at a time, and consumers that stop when they have enough.

numbers

Arithmetic, primes, and sequences with something to prove.

text

Reading, rewriting and comparing strings.

collections and algorithms

Sorting, searching, and working over whole collections.