package
Version:
v1.5.2
Opens a new window with list of versions in this module.
Published: Oct 12, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
-
func Call(needList bool, name string, arglist any) any
-
func CallObject(needList bool, fn any, arglist any) any
-
func Compare(op token.Token, x, y any) bool
-
func Eval(v any) any
-
func Float(v any) float64
-
func InitUniverse(names ...string)
-
func Int(v any) int
-
func List(in []any) []any
-
func ListOp[T any](in []any, fn func(v any) T) []T
-
func LogicOp(op token.Token, x, y any) bool
-
func MathOp(op token.Token, x, y any) any
-
func RangeOp(in []any, fn func(v any))
-
func UnaryOp(op token.Token, x any) any
-
type DelayValue
-
type Module
CallObject calls a function object.
Compare compares two values.
Float converts a value to float64.
func InitUniverse(names ...string)
InitUniverse initializes the universe module with the specified modules.
Int ensures a value is int.
It doesn't convert float to int.
List converts the matching result of (R % ",") to a flat list.
R % "," means R *("," R)
func ListOp[T any](in []any, fn func(v any) T) []T
ListOp converts the matching result of (R % ",") to a flat list.
R % "," means R *("," R)
LogicOp does a logic operation.
MathOp does a math operation.
func RangeOp(in []any, fn func(v any))
RangeOp travels the matching result of (R % ",") and call fn(result of R).
R % "," means R *("," R)
UnaryOp does a unary operation.
type DelayValue = func() any
DelayValue represents a delayed value.
type Module struct {
Name string
}
Module represents a module.
NewModule creates a new module.
Insert inserts an object into the module.
Lookup looks up an object in the module.
Merge merges a module into the current module.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.