Home
Features
Contact
News
Documentation
Tutorial
Reference
Syntax
Expressions
Sample
Libraries
Tools
Internals
Download
Source
Binaries
Links
Other Languages
Development Tools
Libraries
Wrapl, The Programming Language
Libraries
Std
Function
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:
Std.Integer.SmallT
,
Std.Integer.T
,
Std.Number.T
AsmT
Inherits from:
T
Type of functions written in assembly.
CheckedAsmT
Inherits from:
AsmT
,
T
Type of functions written in assembly with a checked minimum number of arguments
CT
Inherits from:
T
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:
T
MessageT
Inherits from:
T
VariableT
Inherits from:
T
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
(
v
1
, ..., v
k
)
:
ANY
Generates
v
1
, ...,
v
k
, ...,
v
1
, ...
Fail
(
)
Fold
(
func1
,
func2
)
returns the repeated application of
func1
to the values produced by
func2
Generate
(
v
1
, ..., v
k
)
:
ANY
Generates
v
1
, ...,
v
k
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
.