Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Go

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ast
build
cas
cmd
compiler
cron
doc
example
format
net/http
parser
printer
runtime
scanner
token
types
w
.gitignore
.travis.yml
LICENCE.md
Makefile
README.md

README.md

Simplex -- Build Status

Simplex is a superset of Go.

Additional builtin types

view[K]M
view[]M
table[K]M

Additional builtin functions (and methods)

type M struct {}
type V view[string]M
type T view[string]M

V.wait()                       => V
len(V)                         => int
V.inject(func(M)A, func([]A)A) => A
V.collect(func(M)N)            => view[string]N
V.select(func(M)bool)          => V
V.reject(F)                   <=> V.select(func(m M)bool{ return !F(m) })
V.detect(F)                   <=> V.select(F)[0]
V.group(func(M)N)              => view[K]view[]M
V.slice(idx, len)              => V
V[idx]                        <=> V.wait()[idx]
V[idx:len]                    <=> V.slice(idx, len)
V[key]                        <=> V.wait()[key]
m, idx := range V             <=> m, idx := range V.wait()
m := range V                  <=> m := range V.wait()

Roadmap

  • Implement .index()
  • Implement .group()
  • Implement .inject()
  • Implement .detect()
Something went wrong with that request. Please try again.