smoλ
A safe & fast low-level language.
smoλ

Tutorial

for beginners
smoλ

Std

the standard library
smoλ

Materials

whitepapers and blog posts
@include std.core
@include std.mem

def Segment(nominal, str value)
    return @args // return all inputs

def Segment(String _value)
    value = _value.str() // convert from all String types
    return nominal.Segment(value)

def combine(Segment[] segments)
    @mut s = str("")     // convert "" to mutable str
    on Stack.arena(1024) // automatic use when needed
    segments.len().range().while next(@mut u64 i)
        then s = str(s+segments[i].value+" ")
    return combined

service main()
    segments = Segment[] 
    .push(Segment("I think."))
    .push(Segment("Therefore I am."))
    segments
    .combine()
    .print()