Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

rish - Modern Unix shell language

Build Status

Example

fun enumerate {
    let $i = 0 
    while fetch $e {
        yield $i $e
        let $i = $i + 1
    }
}

fun even_elements {
    enumerate | while fetch $i $e {
        if ($i % 2 == 0) {
            yield $e
        }
    }
}

yield a b c d | even_elements | sort -r

The result is

d
b

Quick sorting:

fun qsort {
    if fetch $pv ($xs) {
        $xs -> while fetch $x { if ($x <= $pv) { yield $x } } | qsort
        yield $pv
        $xs -> while fetch $x { if ($x >  $pv) { yield $x } } | qsort
    }
}

Current status

The development is currently stalled.

About

A modern Unix shell language.

Resources

Releases

No releases published

Packages

No packages published