W Wrapl, The Programming Language

Libraries Std.Function

Types

FewArgsMessageT

Message sent when a function is called with too few arguments

ArgTypeMessageT

Message sent when a function is called with incorrect argument types

T

Base type of all functions

StatusT

Inherits from:

AsmT

Inherits from:
Type of functions written in assembly.

CheckedAsmT

Inherits from:
Type of functions written in assembly with a checked minimum number of arguments

CT

Inherits from:
Type of functions written in C.

CheckedCT

Inherits from:
CT, T
Type of functions written in C with checked minimum number of arguments.

ConstantT

Inherits from:

MessageT

Inherits from:

VariableT

Inherits from:

IteratorT

Constants

Failure : StatusT

Message : StatusT

Nil : T

Success : StatusT

Suspend : StatusT

Functions

ConstantNew(x) : T

returns a function which always returns the value x.

Cycle(v1, ..., vk) : ANY

Generates v1, ..., vk, ..., v1, ...

Fail()

Fold(func1, func2)

returns the repeated application of func1 to the values produced by func2

Generate(v1, ..., vk) : ANY

Generates v1, ..., vk

Identity()

IteratorNew(fun @ T, args...) : IteratorT

Creates an IteratorT which encapsulates the function call fun(args).

IteratorNext(iter @ IteratorT) : ANY

returns the next value produced by the function call encapsulated in iter.

MessageNew(x) : T

returns a function which always sends the message x.

VariableNew(v+) : T

returns a function which always returns the variable v.

Methods

:"@"(_ @ Std.Function.ArgTypeMessageT, _ = Std.String.T)

:"@"(_ @ FewArgsMessageT, _ = Std.String.T)