lambda

package
v0.0.0-...-85cb23b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MState

type MState struct {
	// contains filtered or unexported fields
}

MState is a middle state It records the call stack and generates responding bytecode

func Filter

func Filter(funcStmt string) *MState

Filter creates a new slice with all elements that pass the test implemented by the provided function

func Map

func Map(funcStmt string) *MState

Map creates a new slice with the results of calling a provided function on every element in the calling slice

func (*MState) Call

func (m *MState) Call(params ...interface{}) Result

Call creates the context and exec the function

func (*MState) Filter

func (m *MState) Filter(funcStmt string) *MState

func (*MState) Map

func (m *MState) Map(funcStmt string) *MState

type Result

type Result interface {
	Interface() (interface{}, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL