Versions in this module Expand all Collapse all v0 v0.2.0 Oct 11, 2024 Changes in this version + const CountKey + const DomainSeparator + const EmptyString + const ErrDivideByZero + const ErrEndIndexTooLow + const ErrExpectedFloat + const ErrExpectedInteger + const ErrExpectedRatio + const ErrFixedArity + const ErrInvalidEndIndex + const ErrInvalidStartIndex + const ErrInvalidSymbol + const ErrMapNotPaired + const ErrMinimumArity + const ErrRangedArity + const ErrTooManyArguments + const False + const FalseLiteral + const InstanceKey + const NameKey + const OrMore + const SymbolGenDigits + const True + const TrueLiteral + const TypeKey + var EmptyVector = Vector + func AnyArityChecker(int) error + func AssertFixed(fixed, count int) int + func AssertMinimum(min, count int) int + func AssertRanged(min, max, count int) int + func DumpString(v Value) string + func Equal(l, r Value) bool + func HashBytes(b []byte) uint64 + func HashCode(v Value) uint64 + func HashInt(i int) uint64 + func HashInt64(i int64) uint64 + func HashString(s string) uint64 + func MakeSequenceStr(s Sequence) string + func ToQuotedString(v Value) string + func ToString(v Value) string + type Appender interface + Append func(Value) Sequence + type ArityChecker func(int) error + func MakeChecker(arity ...int) ArityChecker + func MakeFixedChecker(fixed int) ArityChecker + func MakeMinimumChecker(min int) ArityChecker + func MakeRangedChecker(min, max int) ArityChecker + type BigInt big.Int + func (*BigInt) IsNaN() bool + func (*BigInt) IsNegInf() bool + func (*BigInt) IsPosInf() bool + func (*BigInt) Type() types.Type + func (l *BigInt) Add(r Number) Number + func (l *BigInt) Cmp(r Number) Comparison + func (l *BigInt) Div(r Number) Number + func (l *BigInt) Equal(r Value) bool + func (l *BigInt) HashCode() uint64 + func (l *BigInt) Mod(r Number) Number + func (l *BigInt) Mul(r Number) Number + func (l *BigInt) String() string + func (l *BigInt) Sub(r Number) Number + type Bool bool + func (Bool) Type() types.Type + func (b Bool) Equal(other Value) bool + func (b Bool) HashCode() uint64 + func (b Bool) String() string + type Call func(...Value) Value + type Caller interface + Call func(...Value) Value + CheckArity func(int) error + type Comparison int + const EqualTo + const GreaterThan + const Incomparable + const LessThan + type Cons struct + func NewCons(car, cdr Value) *Cons + func (*Cons) Type() types.Type + func (c *Cons) Car() Value + func (c *Cons) Cdr() Value + func (c *Cons) Equal(other Value) bool + func (c *Cons) HashCode() uint64 + func (c *Cons) String() string + type Counted interface + Count func() Integer + type CountedSequence interface + type Float float64 + func (Float) Type() types.Type + func (l Float) Add(r Number) Number + func (l Float) Cmp(r Number) Comparison + func (l Float) Div(r Number) Number + func (l Float) Equal(r Value) bool + func (l Float) HashCode() uint64 + func (l Float) IsNaN() bool + func (l Float) IsNegInf() bool + func (l Float) IsPosInf() bool + func (l Float) Mod(r Number) Number + func (l Float) Mul(r Number) Number + func (l Float) String() string + func (l Float) Sub(r Number) Number + type Hashed interface + HashCode func() uint64 + type Indexed interface + ElementAt func(Integer) (Value, bool) + type IndexedSequence interface + type Integer int64 + func (Integer) IsNaN() bool + func (Integer) IsNegInf() bool + func (Integer) IsPosInf() bool + func (Integer) Type() types.Type + func (l Integer) Add(r Number) Number + func (l Integer) Cmp(r Number) Comparison + func (l Integer) Div(r Number) Number + func (l Integer) Equal(r Value) bool + func (l Integer) HashCode() uint64 + func (l Integer) Mod(r Number) Number + func (l Integer) Mul(r Number) Number + func (l Integer) String() string + func (l Integer) Sub(r Number) Number + type Keyword string + func (Keyword) Type() types.Type + func (k Keyword) Call(args ...Value) Value + func (k Keyword) CheckArity(argc int) error + func (k Keyword) Equal(other Value) bool + func (k Keyword) HashCode() uint64 + func (k Keyword) Name() Local + func (k Keyword) String() string + type List struct + var Null *List + func NewList(v ...Value) *List + func (l *List) Call(args ...Value) Value + func (l *List) Car() Value + func (l *List) Cdr() Value + func (l *List) CheckArity(argc int) error + func (l *List) Count() Integer + func (l *List) ElementAt(index Integer) (Value, bool) + func (l *List) Equal(other Value) bool + func (l *List) HashCode() uint64 + func (l *List) IsEmpty() bool + func (l *List) Prepend(v Value) Sequence + func (l *List) Reverse() Sequence + func (l *List) Split() (Value, Sequence, bool) + func (l *List) String() string + func (l *List) Type() types.Type + type Local string + func (Local) Type() types.Type + func (l Local) Equal(other Value) bool + func (l Local) HashCode() uint64 + func (l Local) Name() Local + func (l Local) String() string + type Locals []Local + func (n Locals) Sorted() Locals + type Mapped interface + Get func(Value) (Value, bool) + func DumpMapped(v Value) Mapped + type Mapper interface + Put func(Pair) Sequence + Remove func(Value) (Value, Sequence, bool) + type Named interface + Name func() Local + type Number interface + Add func(Number) Number + Cmp func(Number) Comparison + Div func(Number) Number + IsNaN func() bool + IsNegInf func() bool + IsPosInf func() bool + Mod func(Number) Number + Mul func(Number) Number + Sub func(Number) Number + func MustParseFloat(s string) Number + func MustParseInteger(s string) Number + func MustParseRatio(s string) Number + func ParseFloat(s string) (Number, error) + func ParseInteger(s string) (Number, error) + func ParseRatio(s string) (Number, error) + type Object struct + var EmptyObject *Object + func NewObject(pairs ...Pair) *Object + func ValuesToObject(v ...Value) (*Object, error) + func (*Object) Type() types.Type + func (o *Object) Call(args ...Value) Value + func (o *Object) Car() Value + func (o *Object) Cdr() Value + func (o *Object) CheckArity(argc int) error + func (o *Object) Count() Integer + func (o *Object) Equal(other Value) bool + func (o *Object) Get(k Value) (Value, bool) + func (o *Object) HashCode() uint64 + func (o *Object) IsEmpty() bool + func (o *Object) Pairs() Pairs + func (o *Object) Put(p Pair) Sequence + func (o *Object) Remove(k Value) (Value, Sequence, bool) + func (o *Object) Split() (Value, Sequence, bool) + func (o *Object) String() string + type Pair interface + Car func() Value + Cdr func() Value + type Pairs []Pair + type Prepender interface + Prepend func(Value) Sequence + type Procedure interface + func MakeProcedure(c Call, arity ...int) Procedure + type Qualified interface + Domain func() Local + type RandomAccess interface + type Ratio big.Rat + func (*Ratio) IsNaN() bool + func (*Ratio) IsNegInf() bool + func (*Ratio) IsPosInf() bool + func (*Ratio) Type() types.Type + func (l *Ratio) Add(r Number) Number + func (l *Ratio) Cmp(r Number) Comparison + func (l *Ratio) Div(r Number) Number + func (l *Ratio) Equal(r Value) bool + func (l *Ratio) HashCode() uint64 + func (l *Ratio) Mod(r Number) Number + func (l *Ratio) Mul(r Number) Number + func (l *Ratio) String() string + func (l *Ratio) Sub(r Number) Number + type Reverser interface + Reverse func() Sequence + type Sequence interface + IsEmpty func() bool + Split func() (Value, Sequence, bool) + type String string + func (String) Type() types.Type + func (s String) Call(args ...Value) Value + func (s String) Car() Value + func (s String) Cdr() Value + func (s String) CheckArity(argc int) error + func (s String) Count() Integer + func (s String) ElementAt(index Integer) (Value, bool) + func (s String) Equal(other Value) bool + func (s String) HashCode() uint64 + func (s String) IsEmpty() bool + func (s String) Quote() string + func (s String) Reverse() Sequence + func (s String) Split() (Value, Sequence, bool) + func (s String) String() string + type Symbol interface + func MustParseSymbol(s String) Symbol + func NewGeneratedSymbol(name Local) Symbol + func NewQualifiedSymbol(name Local, domain Local) Symbol + func ParseSymbol(s String) (Symbol, error) + type SymbolGenerator struct + func NewSymbolGenerator() *SymbolGenerator + func (g *SymbolGenerator) Local(name Local) Local + func (g *SymbolGenerator) Prefix() string + type TypePredicate struct + func MakeTypePredicate(t types.Type) *TypePredicate + func TypePredicateOf(f Value, r ...Value) *TypePredicate + func (t *TypePredicate) Call(args ...Value) Value + func (t *TypePredicate) CheckArity(argc int) error + func (t *TypePredicate) Equal(other Value) bool + func (t *TypePredicate) Get(key Value) (Value, bool) + func (t *TypePredicate) Name() Local + func (t *TypePredicate) Type() types.Type + type Typed interface + Type func() types.Type + type Value interface + Equal func(Value) bool + func Last(s Sequence) (Value, bool) + type Vector []Value + func NewVector(v ...Value) Vector + func (Vector) Type() types.Type + func (v Vector) Append(e Value) Sequence + func (v Vector) Call(args ...Value) Value + func (v Vector) Car() Value + func (v Vector) Cdr() Value + func (v Vector) CheckArity(argc int) error + func (v Vector) Count() Integer + func (v Vector) ElementAt(index Integer) (Value, bool) + func (v Vector) Equal(other Value) bool + func (v Vector) HashCode() uint64 + func (v Vector) IndexOf(val Value) (int, bool) + func (v Vector) IsEmpty() bool + func (v Vector) Prepend(e Value) Sequence + func (v Vector) Reverse() Sequence + func (v Vector) Split() (Value, Sequence, bool) + func (v Vector) String() string