env

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnv

func NewEnv() types.EnvType

func NewSubordinateEnv added in v0.2.0

func NewSubordinateEnv(outer types.EnvType) types.EnvType

func NewSubordinateEnvWithBinds added in v0.2.0

func NewSubordinateEnvWithBinds(outer types.EnvType, binds_mt types.MalType, exprs_mt types.MalType) (types.EnvType, error)

Types

type Env

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

func (*Env) Find

func (e *Env) Find(key types.Symbol) types.EnvType

func (*Env) FindNT added in v0.2.0

func (e *Env) FindNT(key types.Symbol) types.EnvType

func (*Env) Get

func (e *Env) Get(key types.Symbol) (types.MalType, error)

func (*Env) GetNT added in v0.2.0

func (e *Env) GetNT(key types.Symbol) (types.MalType, error)

func (*Env) Remove

func (e *Env) Remove(key types.Symbol) error

func (*Env) RemoveNT added in v0.2.0

func (e *Env) RemoveNT(key types.Symbol) error

func (*Env) Set

func (e *Env) Set(key types.Symbol, value types.MalType) types.MalType

func (*Env) SetNT added in v0.2.0

func (e *Env) SetNT(key types.Symbol, value types.MalType) types.MalType

func (*Env) Symbols added in v0.2.0

func (e *Env) Symbols(newLine [][]rune, lastPartial string) [][]rune

func (*Env) Update added in v0.2.0

func (e *Env) Update(key types.Symbol, f func(types.MalType) (types.MalType, error)) (types.MalType, error)

Jump to

Keyboard shortcuts

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