extra

package
v0.0.0-...-75abb68 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Label string
	Thing T
}

func MkBox

func MkBox(label string, thing T) *Box

func (Box) Apply

func (t Box) Apply(fr *Frame, args []T) T

func (Box) Bool

func (t Box) Bool() bool

func (Box) EvalExpr

func (t Box) EvalExpr(fr *Frame) T

func (Box) EvalSeq

func (t Box) EvalSeq(fr *Frame) T

func (Box) Float

func (t Box) Float() float64

func (Box) GetAt

func (t Box) GetAt(key T) T

func (Box) Hash

func (t Box) Hash() Hash

func (Box) HeadTail

func (t Box) HeadTail() (hd, tl T)

func (Box) Int

func (t Box) Int() int64

func (Box) IsEmpty

func (t Box) IsEmpty() bool

func (Box) IsPreservedByList

func (t Box) IsPreservedByList() bool

func (Box) IsQuickHash

func (t Box) IsQuickHash() bool

func (Box) IsQuickInt

func (t Box) IsQuickInt() bool

func (Box) IsQuickList

func (t Box) IsQuickList() bool

func (Box) IsQuickNumber

func (t Box) IsQuickNumber() bool

func (Box) IsQuickString

func (t Box) IsQuickString() bool

func (Box) List

func (t Box) List() []T

func (Box) ListElementString

func (t Box) ListElementString() string

func (Box) PutAt

func (t Box) PutAt(value T, key T)

func (Box) String

func (t Box) String() string

func (Box) Uint

func (t Box) Uint() uint64

type Obj

type Obj struct {
	Label   string
	Thing   any
	Methods []EnsembleItem
}

func MkObj

func MkObj(label string, thing any, methods []EnsembleItem) *Obj

func (Obj) Apply

func (t Obj) Apply(fr *Frame, args []T) T

func (Obj) Bool

func (t Obj) Bool() bool

func (Obj) EvalExpr

func (t Obj) EvalExpr(fr *Frame) T

func (Obj) EvalSeq

func (t Obj) EvalSeq(fr *Frame) T

func (Obj) Float

func (t Obj) Float() float64

func (Obj) GetAt

func (t Obj) GetAt(key T) T

func (Obj) Hash

func (t Obj) Hash() Hash

func (Obj) HeadTail

func (t Obj) HeadTail() (hd, tl T)

func (Obj) Int

func (t Obj) Int() int64

func (Obj) IsEmpty

func (t Obj) IsEmpty() bool

func (Obj) IsPreservedByList

func (t Obj) IsPreservedByList() bool

func (Obj) IsQuickHash

func (t Obj) IsQuickHash() bool

func (Obj) IsQuickInt

func (t Obj) IsQuickInt() bool

func (Obj) IsQuickList

func (t Obj) IsQuickList() bool

func (Obj) IsQuickNumber

func (t Obj) IsQuickNumber() bool

func (Obj) IsQuickString

func (t Obj) IsQuickString() bool

func (Obj) List

func (t Obj) List() []T

func (Obj) ListElementString

func (t Obj) ListElementString() string

func (Obj) PutAt

func (t Obj) PutAt(value T, key T)

func (Obj) String

func (t Obj) String() string

func (Obj) Uint

func (t Obj) Uint() uint64

Jump to

Keyboard shortcuts

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