Documentation ¶
Index ¶
- Constants
- Variables
- func Abs(x any) any
- func Add(x, y any) any
- func AddP(x, y any) any
- func AppendWriter(w io.Writer, v interface{}) io.Writer
- func Apply(fn interface{}, args []interface{}) interface{}
- func AsByte(x any) byte
- func AsFloat64(x any) float64
- func AsInt(v any) (int, bool)
- func AsInt64(x any) int64
- func AsNumber(v any) (any, bool)
- func BooleanCast(x any) bool
- func ByteCast(x any) byte
- func CharLiteralFromRune(rn rune) string
- func CloneThreadBindingFrame() interface{}
- func ConcatStrings(strs ...string) string
- func Count(coll any) int
- func CreatePersistentHashMap(keyvals any) any
- func CreatePersistentTreeMap(keyvals interface{}) interface{}
- func CreatePersistentTreeSet(keys ISeq) interface{}
- func CreatePersistentTreeSetWithComparator(comparator IFn, keys ISeq) interface{}
- func Dissoc(x any, k any) any
- func Divide(x, y any) any
- func Equals(a, b any) bool
- func Equiv(a, b any) bool
- func FieldOrMethod(v interface{}, name string) (interface{}, bool)
- func First(x interface{}) interface{}
- func FloatCast(x any) float32
- func GT(x, y any) bool
- func Get(coll, key any) any
- func GetDefault(coll, key, def any) any
- func GoAppend(slc interface{}, vals ...interface{}) interface{}
- func GoCap(v interface{}) int
- func GoChanOf(typ reflect.Type) reflect.Type
- func GoClose(c interface{})
- func GoComplex(real, imag interface{}) interface{}
- func GoCopy(dst, src interface{}) int
- func GoDelete(m, key interface{})
- func GoDeref(ptr interface{}) interface{}
- func GoImag(c interface{}) interface{}
- func GoIndex(slc, i interface{}) interface{}
- func GoLen(v interface{}) int
- func GoMake(typ reflect.Type, args ...interface{}) interface{}
- func GoMapIndex(m, k interface{}) interface{}
- func GoNew(typ reflect.Type) interface{}
- func GoPanic(v interface{})
- func GoReal(c interface{}) interface{}
- func GoRecv(ch interface{}) (interface{}, bool)
- func GoRecvChanOf(typ reflect.Type) reflect.Type
- func GoSend(ch, val interface{})
- func GoSendChanOf(typ reflect.Type) reflect.Type
- func GoSetMapIndex(m, k, v interface{})
- func GoSlice(slc interface{}, indices ...interface{}) interface{}
- func HasType(t reflect.Type, v interface{}) bool
- func Hash(x interface{}) uint32
- func HashEq(x any) uint32
- func Identical(a, b any) bool
- func IdentityHash(x interface{}) uint32
- func Import(args ...interface{})
- func Inc(v any) any
- func IncP(v any) any
- func IntCast(x any) int
- func IsInteger(v any) bool
- func IsNaN(x any) bool
- func IsNil(v interface{}) bool
- func IsNumber(x any) bool
- func IsReduced(v interface{}) bool
- func IsSeq(x interface{}) bool
- func IsTruthy(v interface{}) bool
- func IsZero(x any) bool
- func LT(x, y any) bool
- func LongCast(x any) int64
- func Max(x, y any) any
- func Min(x, y any) any
- func Multiply(x, y any) any
- func MustAsInt(v any) int
- func MustAsNumber(v any) any
- func MustNth(x interface{}, i int) interface{}
- func NewArithmeticError(msg string) error
- func NewIllegalArgumentError(msg string) error
- func NewIllegalStateError(msg string) error
- func NewIndexOutOfBoundsError() error
- func NewTimeoutError(msg string) error
- func Nth(x interface{}, n int) (interface{}, bool)
- func NumbersEqual(x, y any) bool
- func Ops(x any) ops
- func Peek(stk IPersistentStack) interface{}
- func PopThreadBindings()
- func Print(x interface{}, w io.Writer)
- func PrintString(v interface{}) string
- func PushThreadBindings(bindings IPersistentMap)
- func Reduce(f func(interface{}, interface{}) interface{}, seq ISeq) interface{}
- func ReduceInit(f func(interface{}, interface{}) interface{}, init interface{}, seq ISeq) interface{}
- func ReduceKV(f func(init, k, v interface{}) interface{}, init, coll interface{}) interface{}
- func RemoveNamespace(sym *Symbol)
- func ResetThreadBindingFrame(frame interface{})
- func Rest(x interface{}) interface{}
- func RuneFromCharLiteral(lit string) (rune, error)
- func SetField(target interface{}, name string, val interface{}) error
- func ShortCast(x any) int16
- func ShutdownAgents()
- func SliceSet(slc any, idx int, val any)
- func Sub(x, y any) any
- func SubP(x, y any) any
- func ToSlice(x any) []any
- func ToString(v interface{}) string
- func TypeOf(v interface{}) reflect.Type
- func UncheckedByteCast(x any) byte
- func UncheckedFloatCast(x any) float32
- func UncheckedIntCast(x any) int
- func UncheckedLongCast(x any) int64
- func UncheckedShortCast(x any) int16
- func WithMeta(v any, meta IPersistentMap) (any, error)
- func WriteWriter(w io.Writer, v interface{}) io.Writer
- type AFn
- type AMapEntry
- type APersistentMap
- type APersistentSet
- type APersistentVector
- type ASeq
- type Agent
- type ArithmeticError
- type ArrayNode
- type ArrayNodeIterator
- type ArrayNodeSeq
- func (s *ArrayNodeSeq) Cons(obj any) Conser
- func (s *ArrayNodeSeq) Count() int
- func (s *ArrayNodeSeq) Empty() IPersistentCollection
- func (s *ArrayNodeSeq) Equals(obj any) bool
- func (s *ArrayNodeSeq) Equiv(obj any) bool
- func (s *ArrayNodeSeq) First() any
- func (s *ArrayNodeSeq) Hash() uint32
- func (s *ArrayNodeSeq) HashEq() uint32
- func (s *ArrayNodeSeq) Meta() IPersistentMap
- func (s *ArrayNodeSeq) More() ISeq
- func (s *ArrayNodeSeq) Next() ISeq
- func (s *ArrayNodeSeq) Seq() ISeq
- func (s *ArrayNodeSeq) String() string
- func (s *ArrayNodeSeq) WithMeta(meta IPersistentMap) any
- type Associative
- type Atom
- func (a *Atom) AddWatch(key interface{}, fn IFn)
- func (a *Atom) CompareAndSet(oldv, newv interface{}) bool
- func (a *Atom) Deref() interface{}
- func (a *Atom) RemoveWatch(key interface{})
- func (a *Atom) Reset(newVal interface{}) interface{}
- func (a *Atom) SetValidator(vf IFn)
- func (a *Atom) Swap(f IFn, args ISeq) interface{}
- func (a *Atom) Validator() IFn
- func (a *Atom) Watches() IPersistentMap
- type BigDecimal
- func (n *BigDecimal) Abs() *BigDecimal
- func (n *BigDecimal) Add(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) AddInt(x int) *BigDecimal
- func (n *BigDecimal) AddP(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) Cmp(other *BigDecimal) int
- func (n *BigDecimal) Divide(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) Equals(v interface{}) bool
- func (n *BigDecimal) GT(other *BigDecimal) bool
- func (n *BigDecimal) GTE(other *BigDecimal) bool
- func (n *BigDecimal) Hash() uint32
- func (n *BigDecimal) LT(other *BigDecimal) bool
- func (n *BigDecimal) LTE(other *BigDecimal) bool
- func (n *BigDecimal) Multiply(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) Negate() *BigDecimal
- func (n *BigDecimal) Quotient(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) Remainder(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) String() string
- func (n *BigDecimal) Sub(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) SubP(other *BigDecimal) *BigDecimal
- func (n *BigDecimal) ToBigInteger() *big.Int
- type BigInt
- func (n *BigInt) Abs() *BigInt
- func (n *BigInt) Add(other *BigInt) *BigInt
- func (n *BigInt) AddInt(x int) *BigInt
- func (n *BigInt) Cmp(other *BigInt) int
- func (n *BigInt) Divide(other *BigInt) any
- func (n *BigInt) Equals(v interface{}) bool
- func (n *BigInt) GT(other *BigInt) bool
- func (n *BigInt) GTE(other *BigInt) bool
- func (n *BigInt) Hash() uint32
- func (n *BigInt) Int64() int64
- func (n *BigInt) IsInt64() bool
- func (n *BigInt) LT(other *BigInt) bool
- func (n *BigInt) LTE(other *BigInt) bool
- func (n *BigInt) Multiply(other *BigInt) *BigInt
- func (n *BigInt) Quotient(other *BigInt) *BigInt
- func (n *BigInt) Remainder(other *BigInt) *BigInt
- func (n *BigInt) String() string
- func (n *BigInt) Sub(other *BigInt) *BigInt
- func (n *BigInt) ToBigDecimal() *BigDecimal
- func (n *BigInt) ToBigInteger() *big.Int
- type BitmapIndexedNode
- type Box
- type Category
- type Char
- type ChunkBuffer
- type ChunkedCons
- func (c *ChunkedCons) ChunkedFirst() IChunk
- func (c *ChunkedCons) ChunkedMore() ISeq
- func (c *ChunkedCons) ChunkedNext() ISeq
- func (c *ChunkedCons) Cons(o any) Conser
- func (c *ChunkedCons) Count() int
- func (c *ChunkedCons) Empty() IPersistentCollection
- func (c *ChunkedCons) Equals(o any) bool
- func (c *ChunkedCons) Equiv(o any) bool
- func (c *ChunkedCons) First() any
- func (c *ChunkedCons) Hash() uint32
- func (c *ChunkedCons) HashEq() uint32
- func (c *ChunkedCons) Meta() IPersistentMap
- func (c *ChunkedCons) More() ISeq
- func (c *ChunkedCons) Next() ISeq
- func (c *ChunkedCons) Seq() ISeq
- func (c *ChunkedCons) String() string
- func (c *ChunkedCons) WithMeta(meta IPersistentMap) any
- type Comparer
- type Conjer
- type Cons
- func (c *Cons) Cons(o any) Conser
- func (c *Cons) Count() int
- func (c *Cons) Empty() IPersistentCollection
- func (c *Cons) Equals(o any) bool
- func (c *Cons) Equiv(o any) bool
- func (c *Cons) First() any
- func (c *Cons) Hash() uint32
- func (c *Cons) HashEq() uint32
- func (c *Cons) Meta() IPersistentMap
- func (c *Cons) More() ISeq
- func (c *Cons) Next() ISeq
- func (c *Cons) Seq() ISeq
- func (c *Cons) String() string
- func (c *Cons) WithMeta(meta IPersistentMap) any
- type Conser
- type Counted
- type Cycle
- func (c *Cycle) Cons(o any) Conser
- func (c *Cycle) Count() int
- func (c *Cycle) Empty() IPersistentCollection
- func (c *Cycle) Equals(o any) bool
- func (c *Cycle) Equiv(o any) bool
- func (c *Cycle) First() interface{}
- func (c *Cycle) Hash() uint32
- func (c *Cycle) HashEq() uint32
- func (c *Cycle) IsRealized() bool
- func (c *Cycle) Meta() IPersistentMap
- func (c *Cycle) More() ISeq
- func (c *Cycle) Next() ISeq
- func (c *Cycle) Reduce(f IFn) interface{}
- func (c *Cycle) ReduceInit(f IFn, init interface{}) interface{}
- func (c *Cycle) Seq() ISeq
- func (c *Cycle) String() string
- func (c *Cycle) WithMeta(meta IPersistentMap) interface{}
- type EmptyList
- func (e *EmptyList) Cons(x any) Conser
- func (e *EmptyList) Count() int
- func (e *EmptyList) Empty() IPersistentCollection
- func (e *EmptyList) Equals(other any) bool
- func (e *EmptyList) Equiv(other any) bool
- func (e *EmptyList) First() any
- func (e *EmptyList) Hash() uint32
- func (e *EmptyList) HashEq() uint32
- func (e *EmptyList) IsEmpty() bool
- func (e *EmptyList) Meta() IPersistentMap
- func (e *EmptyList) More() ISeq
- func (e *EmptyList) Next() ISeq
- func (e *EmptyList) Peek() any
- func (e *EmptyList) Pop() IPersistentStack
- func (e *EmptyList) Reduce(f IFn) any
- func (e *EmptyList) ReduceInit(f IFn, init any) any
- func (e *EmptyList) Seq() ISeq
- func (e *EmptyList) String() string
- func (e *EmptyList) WithMeta(meta IPersistentMap) any
- type EmptyMapIterator
- type Environment
- type Equalser
- type Equiver
- type Error
- type Future
- type GoMapSeq
- func (s *GoMapSeq) Cons(o any) Conser
- func (s *GoMapSeq) Count() int
- func (s *GoMapSeq) Empty() IPersistentCollection
- func (s *GoMapSeq) Equals(o any) bool
- func (s *GoMapSeq) Equiv(o any) bool
- func (s *GoMapSeq) First() any
- func (s *GoMapSeq) Hash() uint32
- func (s *GoMapSeq) HashEq() uint32
- func (s *GoMapSeq) KVReduce(f IFn, init any) any
- func (s *GoMapSeq) Meta() IPersistentMap
- func (s *GoMapSeq) More() ISeq
- func (s *GoMapSeq) Next() ISeq
- func (s *GoMapSeq) Reduce(f IFn) any
- func (s *GoMapSeq) ReduceInit(f IFn, init any) any
- func (s *GoMapSeq) Seq() ISeq
- func (s *GoMapSeq) String() string
- func (s *GoMapSeq) WithMeta(meta IPersistentMap) any
- type HashCollisionNode
- type Hasher
- type IAtom
- type IAtom2
- type IBlockingDeref
- type IChunk
- type IChunkedSeq
- type IDeref
- type IDrop
- type IEditableCollection
- type IFn
- type IFnFunc
- type IHashEq
- type IKVReduce
- type ILookup
- type IMapEntry
- type IMeta
- type IObj
- type IPending
- type IPersistentCollection
- type IPersistentList
- type IPersistentMap
- type IPersistentSet
- type IPersistentStack
- type IPersistentVector
- type IRecord
- type IReduce
- type IReduceInit
- type IRef
- type ISeq
- func Keys(m Associative) ISeq
- func NewCons(x any, xs any) ISeq
- func NewCycle(vals ISeq) ISeq
- func NewLazySeq(fn func() interface{}) ISeq
- func NewLongRange(start, end, step int64) (res ISeq)
- func NewMapKeySeq(s ISeq) ISeq
- func NewMapValSeq(s ISeq) ISeq
- func NewRange(start, end, step any) ISeq
- func NewRepeatN(count int64, x interface{}) ISeq
- func NewSliceSeq(x any) ISeq
- func Next(x interface{}) ISeq
- func Seq(x interface{}) ISeq
- func Vals(m Associative) ISeq
- type ITransientAssociative
- type ITransientCollection
- type ITransientSet
- type ITransientVector
- type IllegalArgumentError
- type IllegalStateError
- type IndexOutOfBoundsError
- type Indexed
- type IndexedSeq
- type Keyword
- type LazySeq
- func (s *LazySeq) Cons(x interface{}) Conser
- func (s *LazySeq) Count() int
- func (s *LazySeq) Empty() IPersistentCollection
- func (s *LazySeq) Equals(o interface{}) bool
- func (s *LazySeq) Equiv(o interface{}) bool
- func (s *LazySeq) First() interface{}
- func (s *LazySeq) Hash() uint32
- func (s *LazySeq) HashEq() uint32
- func (s *LazySeq) IsRealized() bool
- func (s *LazySeq) Meta() IPersistentMap
- func (s *LazySeq) More() ISeq
- func (s *LazySeq) Next() ISeq
- func (s *LazySeq) Seq() ISeq
- func (s *LazySeq) String() string
- func (s *LazySeq) WithMeta(meta IPersistentMap) interface{}
- type List
- func (l *List) Cons(x any) Conser
- func (l *List) Count() int
- func (l *List) Empty() IPersistentCollection
- func (l *List) Equals(other any) bool
- func (l *List) Equiv(other any) bool
- func (l *List) First() any
- func (l *List) Hash() uint32
- func (l *List) HashEq() uint32
- func (l *List) IsEmpty() bool
- func (l *List) Item() any
- func (l *List) Meta() IPersistentMap
- func (l *List) More() ISeq
- func (l *List) Next() ISeq
- func (l *List) Peek() any
- func (l *List) Pop() IPersistentStack
- func (l *List) Reduce(f IFn) any
- func (l *List) ReduceInit(f IFn, init any) any
- func (l *List) Seq() ISeq
- func (l *List) String() string
- func (l *List) WithMeta(meta IPersistentMap) any
- type LockingTransactor
- type LongChunk
- type LongRange
- func (r *LongRange) ChunkedFirst() IChunk
- func (r *LongRange) ChunkedMore() ISeq
- func (r *LongRange) ChunkedNext() ISeq
- func (r *LongRange) Cons(o any) Conser
- func (r *LongRange) Count() int
- func (r *LongRange) Drop(n int) Sequential
- func (r *LongRange) Empty() IPersistentCollection
- func (r *LongRange) Equals(o any) bool
- func (r *LongRange) Equiv(o any) bool
- func (r *LongRange) First() any
- func (r *LongRange) Hash() uint32
- func (r *LongRange) HashEq() uint32
- func (r *LongRange) Meta() IPersistentMap
- func (r *LongRange) More() ISeq
- func (r *LongRange) Next() ISeq
- func (r *LongRange) Reduce(f IFn) any
- func (r *LongRange) ReduceInit(f IFn, init any) any
- func (r *LongRange) Seq() ISeq
- func (r *LongRange) String() string
- func (r *LongRange) WithMeta(meta IPersistentMap) any
- type Map
- func (m *Map) ApplyTo(args ISeq) any
- func (m *Map) AsTransient() ITransientCollection
- func (m *Map) Assoc(k, v any) Associative
- func (m *Map) AssocEx(k, v any) IPersistentMap
- func (m *Map) Cons(x any) Conser
- func (m *Map) ContainsKey(k any) bool
- func (m *Map) Count() int
- func (m *Map) Empty() IPersistentCollection
- func (m *Map) EntryAt(k any) IMapEntry
- func (m *Map) Equiv(o any) bool
- func (m *Map) HashEq() uint32
- func (m *Map) Invoke(args ...any) any
- func (m *Map) Meta() IPersistentMap
- func (m *Map) Reduce(f IFn) any
- func (m *Map) ReduceInit(f IFn, init any) any
- func (m *Map) Seq() ISeq
- func (m *Map) String() string
- func (m *Map) ValAt(key any) any
- func (m *Map) ValAtDefault(key, def any) any
- func (m *Map) WithMeta(meta IPersistentMap) any
- func (m *Map) Without(k any) IPersistentMap
- type MapEntry
- func (me *MapEntry) ApplyTo(args ISeq) any
- func (me *MapEntry) Assoc(k, v any) Associative
- func (me *MapEntry) AssocN(i int, o any) IPersistentVector
- func (me *MapEntry) Cons(o any) Conser
- func (me *MapEntry) ContainsKey(k any) bool
- func (me *MapEntry) Count() int
- func (me *MapEntry) Empty() IPersistentCollection
- func (me *MapEntry) EntryAt(k any) IMapEntry
- func (me *MapEntry) Equiv(o any) bool
- func (me *MapEntry) GetKey() any
- func (me *MapEntry) GetValue() any
- func (me *MapEntry) HashEq() uint32
- func (me *MapEntry) Invoke(args ...any) any
- func (me *MapEntry) Key() any
- func (me *MapEntry) Length() int
- func (me *MapEntry) Nth(i int) any
- func (me *MapEntry) NthDefault(i int, d any) any
- func (me *MapEntry) Peek() any
- func (me *MapEntry) Pop() IPersistentStack
- func (me *MapEntry) RSeq() ISeq
- func (me *MapEntry) Seq() ISeq
- func (me *MapEntry) String() string
- func (me *MapEntry) Val() any
- func (me *MapEntry) ValAt(key any) any
- func (me *MapEntry) ValAtDefault(key, notFound any) any
- type MapIterator
- type MapKeySeq
- func (s *MapKeySeq) Cons(o any) Conser
- func (s *MapKeySeq) Count() int
- func (s *MapKeySeq) Empty() IPersistentCollection
- func (s *MapKeySeq) Equals(o any) bool
- func (s *MapKeySeq) Equiv(o any) bool
- func (s *MapKeySeq) First() any
- func (s *MapKeySeq) Hash() uint32
- func (s *MapKeySeq) HashEq() uint32
- func (s *MapKeySeq) Meta() IPersistentMap
- func (s *MapKeySeq) More() ISeq
- func (s *MapKeySeq) Next() ISeq
- func (s *MapKeySeq) Seq() ISeq
- func (s *MapKeySeq) String() string
- func (s *MapKeySeq) WithMeta(meta IPersistentMap) any
- type MapSeq
- func (s *MapSeq) Cons(o any) Conser
- func (s *MapSeq) Count() int
- func (s *MapSeq) Drop(n int) Sequential
- func (s *MapSeq) Empty() IPersistentCollection
- func (s *MapSeq) Equals(o any) bool
- func (s *MapSeq) Equiv(o any) bool
- func (s *MapSeq) First() any
- func (s *MapSeq) Hash() uint32
- func (s *MapSeq) HashEq() uint32
- func (s *MapSeq) Meta() IPersistentMap
- func (s *MapSeq) More() ISeq
- func (s *MapSeq) Next() ISeq
- func (s *MapSeq) Reduce(f IFn) any
- func (s *MapSeq) ReduceInit(f IFn, init any) any
- func (s *MapSeq) Seq() ISeq
- func (s *MapSeq) String() string
- func (s *MapSeq) WithMeta(meta IPersistentMap) any
- type MapValSeq
- func (s *MapValSeq) Cons(o any) Conser
- func (s *MapValSeq) Count() int
- func (s *MapValSeq) Empty() IPersistentCollection
- func (s *MapValSeq) Equals(o any) bool
- func (s *MapValSeq) Equiv(o any) bool
- func (s *MapValSeq) First() any
- func (s *MapValSeq) Hash() uint32
- func (s *MapValSeq) HashEq() uint32
- func (s *MapValSeq) Meta() IPersistentMap
- func (s *MapValSeq) More() ISeq
- func (s *MapValSeq) Next() ISeq
- func (s *MapValSeq) Reduce(f IFn) any
- func (s *MapValSeq) ReduceInit(f IFn, init any) any
- func (s *MapValSeq) Seq() ISeq
- func (s *MapValSeq) String() string
- func (s *MapValSeq) WithMeta(meta IPersistentMap) any
- type MultiFn
- func (m *MultiFn) AddMethod(dispatchVal interface{}, method IFn) *MultiFn
- func (m *MultiFn) ApplyTo(args ISeq) interface{}
- func (m *MultiFn) Invoke(args ...interface{}) interface{}
- func (m *MultiFn) PreferMethod(dispatchValX, dispatchValY interface{}) *MultiFn
- func (m *MultiFn) PreferTable() IPersistentMap
- type Named
- type Namespace
- func (ns *Namespace) AddAlias(alias *Symbol, ns2 *Namespace)
- func (ns *Namespace) Aliases() IPersistentMap
- func (ns *Namespace) AlterMeta(alter IFn, args ISeq) IPersistentMap
- func (ns *Namespace) FindInternedVar(sym *Symbol) *Var
- func (ns *Namespace) GetMapping(sym *Symbol) interface{}
- func (ns *Namespace) Import(export string, v interface{}) interface{}
- func (ns *Namespace) Intern(sym *Symbol) *Var
- func (ns *Namespace) InternWithValue(sym *Symbol, value interface{}, replaceRoot bool) *Var
- func (ns *Namespace) LookupAlias(sym *Symbol) *Namespace
- func (ns *Namespace) Mappings() IPersistentMap
- func (ns *Namespace) Meta() IPersistentMap
- func (ns *Namespace) Name() *Symbol
- func (ns *Namespace) Refer(sym *Symbol, v *Var) *Var
- func (ns *Namespace) ResetMeta(meta IPersistentMap) IPersistentMap
- func (ns *Namespace) String() string
- type Node
- type NodeIterator
- type NodeSeq
- func (s *NodeSeq) Cons(obj any) Conser
- func (s *NodeSeq) Count() int
- func (s *NodeSeq) Empty() IPersistentCollection
- func (s *NodeSeq) Equals(obj any) bool
- func (s *NodeSeq) Equiv(obj any) bool
- func (s *NodeSeq) First() any
- func (s *NodeSeq) Hash() uint32
- func (s *NodeSeq) HashEq() uint32
- func (n *NodeSeq) Meta() IPersistentMap
- func (s *NodeSeq) More() ISeq
- func (s *NodeSeq) Next() ISeq
- func (s *NodeSeq) Seq() ISeq
- func (s *NodeSeq) String() string
- func (s *NodeSeq) WithMeta(meta IPersistentMap) any
- type Nther
- type NumberMethods
- func (nm *NumberMethods) Add(x, y any) any
- func (nm *NumberMethods) AddP(x, y any) any
- func (nm *NumberMethods) And(x, y any) any
- func (nm *NumberMethods) BooleanArray(sizeOrSeq any) []bool
- func (nm *NumberMethods) BooleanArrayInit(size int, init any) []bool
- func (nm *NumberMethods) Booleans(x any) []bool
- func (nm *NumberMethods) ByteArray(sizeOrSeq any) []byte
- func (nm *NumberMethods) ByteArrayInit(size int, init any) []byte
- func (nm *NumberMethods) Bytes(x any) []byte
- func (nm *NumberMethods) CharArray(sizeOrSeq any) []Char
- func (nm *NumberMethods) CharArrayInit(size int, init any) []Char
- func (nm *NumberMethods) Chars(x any) []Char
- func (nm *NumberMethods) ClearBit(x, y any) int64
- func (nm *NumberMethods) Dec(x any) any
- func (nm *NumberMethods) Divide(x, y any) any
- func (nm *NumberMethods) DoubleArray(sizeOrSeq any) []float64
- func (nm *NumberMethods) DoubleArrayInit(size int, init any) []float64
- func (nm *NumberMethods) Doubles(x any) []float64
- func (nm *NumberMethods) Equiv(x, y any) bool
- func (nm *NumberMethods) FlipBit(x, y any) int64
- func (nm *NumberMethods) FloatArray(sizeOrSeq any) []float32
- func (nm *NumberMethods) FloatArrayInit(size int, init any) []float32
- func (nm *NumberMethods) Floats(x any) []float32
- func (nm *NumberMethods) Gt(x, y any) bool
- func (nm *NumberMethods) Gte(x, y any) bool
- func (nm *NumberMethods) Inc(v any) any
- func (nm *NumberMethods) IntArray(sizeOrSeq any) []int
- func (nm *NumberMethods) IntArrayInit(size int, init any) []int
- func (nm *NumberMethods) Ints(x any) []int
- func (nm *NumberMethods) IsNeg(x any) bool
- func (nm *NumberMethods) IsPos(x any) bool
- func (nm *NumberMethods) IsZero(x any) bool
- func (nm *NumberMethods) LongArray(sizeOrSeq any) []int64
- func (nm *NumberMethods) LongArrayInit(size int, init any) []int64
- func (nm *NumberMethods) Longs(x any) []int64
- func (nm *NumberMethods) Lt(x, y any) bool
- func (nm *NumberMethods) Lte(x, y any) bool
- func (nm *NumberMethods) Max(x, y any) any
- func (nm *NumberMethods) Min(x, y any) any
- func (nm *NumberMethods) Minus(x, y any) any
- func (nm *NumberMethods) MinusP(x, y any) any
- func (nm *NumberMethods) Multiply(x, y any) any
- func (nm *NumberMethods) MultiplyP(x, y any) any
- func (nm *NumberMethods) Quotient(x, y any) any
- func (nm *NumberMethods) Remainder(x, y any) any
- func (nm *NumberMethods) SetBit(x, y any) int64
- func (nm *NumberMethods) ShiftLeft(x, y any) int64
- func (nm *NumberMethods) ShiftRight(x, y any) int64
- func (nm *NumberMethods) ShortArray(sizeOrSeq any) []int16
- func (nm *NumberMethods) ShortArrayInit(size int, init any) []int16
- func (nm *NumberMethods) Shorts(x any) []int16
- func (nm *NumberMethods) TestBit(x, y any) bool
- func (nm *NumberMethods) UncheckedAdd(x, y any) any
- func (nm *NumberMethods) UncheckedDec(x any) any
- func (nm *NumberMethods) UncheckedIntDivide(x, y int) any
- func (nm *NumberMethods) Unchecked_inc(v any) any
- func (nm *NumberMethods) Unchecked_minus(x, y any) any
- func (nm *NumberMethods) Unchecked_multiply(x, y any) any
- func (nm *NumberMethods) Unchecked_negate(x any) any
- func (nm *NumberMethods) UnsignedShiftRight(x, y any) int64
- type Object
- type Pair
- type PersistentHashMap
- func (m *PersistentHashMap) ApplyTo(args ISeq) any
- func (m *PersistentHashMap) Assoc(key, val any) Associative
- func (m *PersistentHashMap) AssocEx(key, val any) IPersistentMap
- func (m *PersistentHashMap) Cons(o any) Conser
- func (m *PersistentHashMap) ContainsKey(k any) bool
- func (m *PersistentHashMap) Count() int
- func (m *PersistentHashMap) Empty() IPersistentCollection
- func (m *PersistentHashMap) EntryAt(key any) IMapEntry
- func (m *PersistentHashMap) Equiv(o any) bool
- func (m *PersistentHashMap) HashEq() uint32
- func (m *PersistentHashMap) Invoke(args ...any) any
- func (m *PersistentHashMap) Meta() IPersistentMap
- func (m *PersistentHashMap) Reduce(f IFn) any
- func (m *PersistentHashMap) ReduceInit(f IFn, init any) any
- func (m *PersistentHashMap) Seq() ISeq
- func (m *PersistentHashMap) String() string
- func (m *PersistentHashMap) ValAt(key any) any
- func (m *PersistentHashMap) ValAtDefault(key, notFound any) any
- func (m *PersistentHashMap) WithMeta(meta IPersistentMap) any
- func (m *PersistentHashMap) Without(key any) IPersistentMap
- type PersistentHashSet
- type PersistentStructMap
- func (m *PersistentStructMap) ApplyTo(args ISeq) any
- func (m *PersistentStructMap) Assoc(k any, v any) Associative
- func (m *PersistentStructMap) AssocEx(k, v any) IPersistentMap
- func (m *PersistentStructMap) Cons(x any) Conser
- func (m *PersistentStructMap) ContainsKey(k any) bool
- func (m *PersistentStructMap) Count() int
- func (m *PersistentStructMap) Empty() IPersistentCollection
- func (m *PersistentStructMap) EntryAt(k any) IMapEntry
- func (m *PersistentStructMap) Equiv(o any) bool
- func (m *PersistentStructMap) HashEq() uint32
- func (m *PersistentStructMap) Invoke(args ...any) any
- func (m *PersistentStructMap) Meta() IPersistentMap
- func (m *PersistentStructMap) Seq() ISeq
- func (m *PersistentStructMap) ValAt(key any) any
- func (m *PersistentStructMap) ValAtDefault(key, def any) any
- func (m *PersistentStructMap) WithMeta(meta IPersistentMap) any
- func (m *PersistentStructMap) Without(k any) IPersistentMap
- type PersistentStructMapDef
- type PersistentVector
- type Range
- func (r *Range) ChunkedFirst() IChunk
- func (r *Range) ChunkedMore() ISeq
- func (r *Range) ChunkedNext() ISeq
- func (r *Range) Cons(val any) Conser
- func (r *Range) Count() int
- func (r *Range) Empty() IPersistentCollection
- func (r *Range) Equals(o any) bool
- func (r *Range) Equiv(o any) bool
- func (r *Range) First() any
- func (r *Range) ForceChunk()
- func (r *Range) Hash() uint32
- func (r *Range) HashEq() uint32
- func (r *Range) Meta() IPersistentMap
- func (r *Range) More() ISeq
- func (r *Range) Next() ISeq
- func (r *Range) Reduce(f IFn) any
- func (r *Range) ReduceInit(f IFn, init any) any
- func (r *Range) Seq() ISeq
- func (r *Range) String() string
- func (r *Range) WithMeta(meta IPersistentMap) any
- type Ratio
- func (r *Ratio) Abs() *Ratio
- func (r *Ratio) Add(other *Ratio) any
- func (r *Ratio) BigIntegerValue() *big.Int
- func (r *Ratio) Cmp(other *Ratio) int
- func (r *Ratio) Denominator() *big.Int
- func (r *Ratio) Divide(other *Ratio) any
- func (r *Ratio) Equals(other interface{}) bool
- func (r *Ratio) GT(other *Ratio) bool
- func (r *Ratio) GTE(other *Ratio) bool
- func (r *Ratio) LT(other *Ratio) bool
- func (r *Ratio) LTE(other *Ratio) bool
- func (r *Ratio) Multiply(other *Ratio) any
- func (r *Ratio) Negate() *Ratio
- func (r *Ratio) Numerator() *big.Int
- func (r *Ratio) Quotient(other *Ratio) any
- func (r *Ratio) String() string
- func (r *Ratio) Sub(other *Ratio) any
- type RecurError
- type RecurTarget
- type Reduced
- type Ref
- type RegexpMatcher
- func (m *RegexpMatcher) AppendReplacement(sb io.Writer, replacement string) *RegexpMatcher
- func (m *RegexpMatcher) AppendTail(sb io.Writer)
- func (m *RegexpMatcher) Find() bool
- func (m *RegexpMatcher) Group() string
- func (m *RegexpMatcher) GroupCount() int
- func (m *RegexpMatcher) GroupInt(group int) any
- func (m *RegexpMatcher) Matches() bool
- type Repeat
- func (r *Repeat) Cons(val any) Conser
- func (r *Repeat) Count() int
- func (r *Repeat) Empty() IPersistentCollection
- func (r *Repeat) Equals(o any) bool
- func (r *Repeat) Equiv(o any) bool
- func (r *Repeat) First() interface{}
- func (r *Repeat) Hash() uint32
- func (r *Repeat) HashEq() uint32
- func (r *Repeat) Meta() IPersistentMap
- func (r *Repeat) More() ISeq
- func (r *Repeat) Next() ISeq
- func (r *Repeat) Reduce(f IFn) interface{}
- func (r *Repeat) ReduceInit(f IFn, start interface{}) interface{}
- func (r *Repeat) Seq() ISeq
- func (r *Repeat) String() string
- func (r *Repeat) WithMeta(meta IPersistentMap) any
- type Reversible
- type Seqable
- type Sequential
- type Set
- func (s *Set) ApplyTo(args ISeq) interface{}
- func (s *Set) AsTransient() ITransientCollection
- func (s *Set) Cons(v interface{}) Conser
- func (s *Set) Contains(v interface{}) bool
- func (s *Set) Count() int
- func (s *Set) Disjoin(v interface{}) IPersistentSet
- func (s *Set) Empty() IPersistentCollection
- func (s *Set) Equals(v2 interface{}) bool
- func (s *Set) Equiv(o any) bool
- func (s *Set) Get(key interface{}) interface{}
- func (s *Set) HashEq() uint32
- func (s *Set) Invoke(args ...interface{}) interface{}
- func (s *Set) IsEmpty() bool
- func (s *Set) Meta() IPersistentMap
- func (s *Set) Seq() ISeq
- func (s *Set) String() string
- func (s *Set) WithMeta(meta IPersistentMap) interface{}
- type SliceChunk
- type SliceSeq
- func (s *SliceSeq) Cons(o any) Conser
- func (s *SliceSeq) Count() int
- func (s *SliceSeq) Empty() IPersistentCollection
- func (s *SliceSeq) Equals(o any) bool
- func (s *SliceSeq) Equiv(o any) bool
- func (s *SliceSeq) First() any
- func (s *SliceSeq) Hash() uint32
- func (s *SliceSeq) HashEq() uint32
- func (s *SliceSeq) Meta() IPersistentMap
- func (s *SliceSeq) More() ISeq
- func (s *SliceSeq) Next() ISeq
- func (s *SliceSeq) Reduce(f IFn) any
- func (s *SliceSeq) ReduceInit(f IFn, start any) any
- func (s *SliceSeq) Seq() ISeq
- func (s *SliceSeq) String() string
- func (s *SliceSeq) WithMeta(meta IPersistentMap) any
- type StackFrame
- type Stacker
- type StringSeq
- func (s *StringSeq) Cons(o any) Conser
- func (s *StringSeq) Count() int
- func (s *StringSeq) Drop(n int) Sequential
- func (s *StringSeq) Empty() IPersistentCollection
- func (s *StringSeq) Equals(o any) bool
- func (s *StringSeq) Equiv(o any) bool
- func (s *StringSeq) First() any
- func (s *StringSeq) Hash() uint32
- func (s *StringSeq) HashEq() uint32
- func (s *StringSeq) Index() int
- func (s *StringSeq) Meta() IPersistentMap
- func (s *StringSeq) More() ISeq
- func (s *StringSeq) Next() ISeq
- func (s *StringSeq) ReduceInit(f IFn, init any) any
- func (s *StringSeq) Seq() ISeq
- func (s *StringSeq) String() string
- func (s *StringSeq) WithMeta(meta IPersistentMap) any
- type SubVector
- func (v *SubVector) ApplyTo(args ISeq) any
- func (v *SubVector) Assoc(key, val interface{}) Associative
- func (v *SubVector) AssocN(i int, val interface{}) IPersistentVector
- func (v *SubVector) Cons(val interface{}) Conser
- func (v *SubVector) ContainsKey(key interface{}) bool
- func (v *SubVector) Count() int
- func (v *SubVector) Empty() IPersistentCollection
- func (v *SubVector) EntryAt(key interface{}) IMapEntry
- func (v *SubVector) Equals(v2 interface{}) bool
- func (v *SubVector) Equiv(v2 interface{}) bool
- func (v *SubVector) HashEq() uint32
- func (v *SubVector) Invoke(args ...any) any
- func (v *SubVector) IsEmpty() bool
- func (v *SubVector) Length() int
- func (v *SubVector) Meta() IPersistentMap
- func (v *SubVector) Nth(i int) interface{}
- func (v *SubVector) NthDefault(i int, def interface{}) interface{}
- func (v *SubVector) Peek() interface{}
- func (v *SubVector) Pop() IPersistentStack
- func (v *SubVector) RSeq() ISeq
- func (v *SubVector) Seq() ISeq
- func (v *SubVector) ValAt(i interface{}) interface{}
- func (v *SubVector) ValAtDefault(k, def interface{}) interface{}
- func (v *SubVector) WithMeta(meta IPersistentMap) interface{}
- type Symbol
- func (s *Symbol) Equals(v interface{}) bool
- func (s *Symbol) FullName() string
- func (s *Symbol) Hash() uint32
- func (s *Symbol) Meta() IPersistentMap
- func (s *Symbol) Name() string
- func (s *Symbol) Namespace() string
- func (s *Symbol) String() string
- func (s *Symbol) WithMeta(meta IPersistentMap) interface{}
- type TimeoutError
- type TransientMap
- type TransientSet
- type TransientVector
- func (t *TransientVector) ApplyTo(args ISeq) any
- func (t *TransientVector) Assoc(key, val any) ITransientAssociative
- func (t *TransientVector) AssocN(i int, val any) ITransientVector
- func (t *TransientVector) Conj(o any) Conjer
- func (t *TransientVector) Count() int
- func (t *TransientVector) Invoke(args ...any) any
- func (t *TransientVector) Nth(i int) any
- func (t *TransientVector) NthDefault(i int, def any) any
- func (t *TransientVector) Persistent() IPersistentCollection
- func (t *TransientVector) Pop() ITransientVector
- func (t *TransientVector) ValAt(i any) any
- func (t *TransientVector) ValAtDefault(k, def any) any
- type UnboundVar
- type Var
- func InternVar(ns *Namespace, sym *Symbol, root interface{}, replaceRoot bool) *Var
- func InternVarName(nsSym, nameSym *Symbol) *Var
- func InternVarReplaceRoot(ns *Namespace, sym *Symbol, root interface{}) *Var
- func NewVar(ns *Namespace, sym *Symbol) *Var
- func NewVarWithRoot(ns *Namespace, sym *Symbol, root interface{}) *Var
- func (v *Var) AddWatch(key interface{}, fn IFn)
- func (v *Var) AlterMeta(alter IFn, args ISeq) IPersistentMap
- func (v *Var) AlterRoot(alter IFn, args ISeq) interface{}
- func (v *Var) ApplyTo(args ISeq) interface{}
- func (v *Var) BindRoot(root interface{})
- func (v *Var) Deref() interface{}
- func (v *Var) Get() interface{}
- func (v *Var) HasRoot() bool
- func (v *Var) Hash() uint32
- func (v *Var) Invoke(args ...interface{}) interface{}
- func (v *Var) IsBound() bool
- func (v *Var) IsMacro() bool
- func (v *Var) IsPublic() bool
- func (v *Var) Meta() IPersistentMap
- func (v *Var) Namespace() *Namespace
- func (v *Var) RemoveWatch(key interface{})
- func (v *Var) Set(val interface{}) interface{}
- func (v *Var) SetDynamic() *Var
- func (v *Var) SetMacro()
- func (v *Var) SetMeta(meta IPersistentMap)
- func (v *Var) SetValidator(vf IFn)
- func (v *Var) String() string
- func (v *Var) Symbol() *Symbol
- func (v *Var) Validator() IFn
- func (v *Var) Watches() IPersistentMap
- type Vector
- func (v *Vector) ApplyTo(args ISeq) any
- func (v *Vector) AsTransient() ITransientCollection
- func (v *Vector) Assoc(key, val any) Associative
- func (v *Vector) AssocN(i int, val any) IPersistentVector
- func (v *Vector) Cons(x any) Conser
- func (v *Vector) ContainsKey(key any) bool
- func (v *Vector) Count() int
- func (v *Vector) Drop(n int) Sequential
- func (v *Vector) Empty() IPersistentCollection
- func (v *Vector) EntryAt(key any) IMapEntry
- func (v *Vector) Equals(v2 any) bool
- func (v *Vector) Equiv(v2 any) bool
- func (v *Vector) HashEq() uint32
- func (v *Vector) Invoke(args ...any) any
- func (v *Vector) IsEmpty() bool
- func (v *Vector) KVReduce(f IFn, init any) any
- func (v *Vector) Length() int
- func (v *Vector) Meta() IPersistentMap
- func (v *Vector) Nth(i int) any
- func (v *Vector) NthDefault(i int, def any) any
- func (v *Vector) Peek() any
- func (v *Vector) Pop() IPersistentStack
- func (v *Vector) RSeq() ISeq
- func (v *Vector) Reduce(f IFn) any
- func (v *Vector) ReduceInit(f IFn, init any) any
- func (v *Vector) Seq() ISeq
- func (v *Vector) String() string
- func (v *Vector) ValAt(i any) any
- func (v *Vector) ValAtDefault(k, def any) any
- func (v *Vector) WithMeta(meta IPersistentMap) any
- type Volatile
Constants ¶
const ( CategoryInteger = iota CategoryFloating CategoryDecimal CategoryRatio )
Variables ¶
var ( BuiltinTypes = map[string]reflect.Type{ "any": reflect.TypeOf((*interface{})(nil)).Elem(), "bool": reflect.TypeOf(false), "uint8": reflect.TypeOf(uint8(0)), "uint16": reflect.TypeOf(uint16(0)), "uint32": reflect.TypeOf(uint32(0)), "uint64": reflect.TypeOf(uint64(0)), "int8": reflect.TypeOf(int8(0)), "int16": reflect.TypeOf(int16(0)), "int32": reflect.TypeOf(int32(0)), "int64": reflect.TypeOf(int64(0)), "float32": reflect.TypeOf(float32(0)), "float64": reflect.TypeOf(float64(0)), "complex64": reflect.TypeOf(complex64(0)), "complex128": reflect.TypeOf(complex128(0)), "string": reflect.TypeOf(""), "int": reflect.TypeOf(int(0)), "uint": reflect.TypeOf(uint(0)), "uintptr": reflect.TypeOf(uintptr(0)), "byte": reflect.TypeOf(byte(0)), "rune": reflect.TypeOf(rune(0)), "error": reflect.TypeOf((*error)(nil)).Elem(), } Builtins = map[string]interface{}{ "append": GoAppend, "copy": GoCopy, "delete": GoDelete, "len": GoLen, "cap": GoCap, "make": GoMake, "new": GoNew, "complex": GoComplex, "real": GoReal, "imag": GoImag, "close": GoClose, "panic": GoPanic, "slice-of": reflect.SliceOf, "ptr-to": reflect.PtrTo, "chan-of": GoChanOf, "<-chan-of": GoRecvChanOf, "chan<--of": GoSendChanOf, "map-of": reflect.MapOf, "func-of": reflect.FuncOf, "array-of": reflect.ArrayOf, "deref": GoDeref, "index": GoIndex, "slice": GoSlice, "map-index": GoMapIndex, "set-map-index": GoSetMapIndex, "send": GoSend, "recv": GoRecv, } )
var ( KWTag = NewKeyword("tag") KWFile = NewKeyword("file") KWLine = NewKeyword("line") KWColumn = NewKeyword("column") KWEndLine = NewKeyword("end-line") KWEndColumn = NewKeyword("end-column") KWCtxExpr = NewKeyword("ctx/expr") KWCtxReturn = NewKeyword("ctx/return") KWCtxStatement = NewKeyword("ctx/statement") KWTopLevel = NewKeyword("top-level") KWEnv = NewKeyword("env") KWContext = NewKeyword("context") KWIsBody = NewKeyword("body?") KWLoopId = NewKeyword("loop-id") KWBinding = NewKeyword("binding") KWLoopLocals = NewKeyword("loop-locals") KWInTry = NewKeyword("in-try") KWCatch = NewKeyword("catch") KWDoc = NewKeyword("doc") KWOnce = NewKeyword("once") KWHashEquiv = NewKeyword("hash-equiv") KWBool = NewKeyword("bool") KWKeyword = NewKeyword("keyword") KWSymbol = NewKeyword("symbol") KWString = NewKeyword("string") KWSeq = NewKeyword("seq") KWChar = NewKeyword("char") KWRegex = NewKeyword("regex") KWNumber = NewKeyword("number") KWUnknown = NewKeyword("unknown") KWCaseNode = NewKeyword("case-node") KWArgId = NewKeyword("arg-id") KWArg = NewKeyword("arg") KWFnMethod = NewKeyword("fn-method") KWNamespaces = NewKeyword("namespaces") KWAliases = NewKeyword("aliases") KWMappings = NewKeyword("mappings") KWNil = NewKeyword("nil") KWHostField = NewKeyword("host-field") KWLetfn = NewKeyword("letfn") KWCompact = NewKeyword("compact") KWSparse = NewKeyword("sparse") KWInt = NewKeyword("int") KWHashIdentity = NewKeyword("hash-identity") KWArglists = NewKeyword("arglists") KWCatches = NewKeyword("catches") KWLocals = NewKeyword("locals") KWMutable = NewKeyword("mutable") KWType = NewKeyword("type") KWIsLiteral = NewKeyword("literal?") KWIsAssignable = NewKeyword("assignable?") KWMethods = NewKeyword("methods") KWIsVariadic = NewKeyword("variadic?") KWMaxFixedArity = NewKeyword("max-fixed-arity") KWLocal = NewKeyword("local") KWName = NewKeyword("name") KWFixedArity = NewKeyword("fixed-arity") KWBody = NewKeyword("body") KWParams = NewKeyword("params") KWOp = NewKeyword("op") KWForm = NewKeyword("form") KWConst = NewKeyword("const") KWDef = NewKeyword("def") KWSetBang = NewKeyword("set!") KWMaybeClass = NewKeyword("maybe-class") KWWithMeta = NewKeyword("with-meta") KWArgs = NewKeyword("args") KWBindings = NewKeyword("bindings") KWCase = NewKeyword("case") KWClass = NewKeyword("class") KWDefault = NewKeyword("default") KWDo = NewKeyword("do") KWElse = NewKeyword("else") KWException = NewKeyword("exception") KWExpr = NewKeyword("expr") KWExprs = NewKeyword("exprs") KWField = NewKeyword("field") KWFinally = NewKeyword("finally") KWFn = NewKeyword("fn") KWHostCall = NewKeyword("host-call") KWHostInterop = NewKeyword("host-interop") KWIf = NewKeyword("if") KWInit = NewKeyword("init") KWInvoke = NewKeyword("invoke") KWItems = NewKeyword("items") KWKeys = NewKeyword("keys") KWLet = NewKeyword("let") KWLoop = NewKeyword("loop") KWMOrF = NewKeyword("m-or-f") KWMap = NewKeyword("map") KWMaybeHostForm = NewKeyword("maybe-host-form") KWMeta = NewKeyword("meta") KWMethod = NewKeyword("method") KWNew = NewKeyword("new") KWNodes = NewKeyword("nodes") KWQuote = NewKeyword("quote") KWRecur = NewKeyword("recur") KWRet = NewKeyword("ret") KWSet = NewKeyword("set") KWStatements = NewKeyword("statements") KWTarget = NewKeyword("target") KWTest = NewKeyword("test") KWTests = NewKeyword("tests") KWTheVar = NewKeyword("the-var") KWThen = NewKeyword("then") KWThrow = NewKeyword("throw") KWTry = NewKeyword("try") KWVal = NewKeyword("val") KWVals = NewKeyword("vals") KWVar = NewKeyword("var") KWVector = NewKeyword("vector") KWRawForms = NewKeyword("raw-forms") KWChildren = NewKeyword("children") KWMacro = NewKeyword("macro") KWPrivate = NewKeyword("private") KWDynamic = NewKeyword("dynamic") KWNS = NewKeyword("ns") )
var ( LockingTransaction = &LockingTransactor{} ErrNoTransaction = errors.New("no transaction running") )
var ( Throwable = reflect.TypeOf((interface{})(nil)) // TODO: convert use of 'matcher' in core.glj to fit go's // regexps. This supresses errors but doesn't actually work. Matcher = reflect.TypeOf(®exp.Regexp{}) // TODO: rework use of PrintWriter in core.glj PrintWriter = reflect.TypeOf(&bytes.Buffer{}) )
var ( NSCore = FindOrCreateNamespace(SymbolCoreNamespace) VarNS = InternVar(NSCore, NewSymbol("ns"), false, true) VarInNS = InternVar(NSCore, NewSymbol("in-ns"), false, true) VarCurrentNS = InternVarReplaceRoot(NSCore, NewSymbol("*ns*"), NSCore).SetDynamic() VarWarnOnReflection = InternVarReplaceRoot(NSCore, NewSymbol("*warn-on-reflection*"), false).SetDynamic() VarUncheckedMath = InternVarReplaceRoot(NSCore, NewSymbol("*unchecked-math*"), false).SetDynamic() VarAgent = InternVarReplaceRoot(NSCore, NewSymbol("*agent*"), nil).SetDynamic() VarPrintReadably = InternVarReplaceRoot(NSCore, NewSymbol("*print-readably*"), true).SetDynamic() VarOut = InternVarReplaceRoot(NSCore, NewSymbol("*out*"), os.Stdout).SetDynamic() VarIn = InternVarReplaceRoot(NSCore, NewSymbol("*in*"), os.Stdin).SetDynamic() VarAssert = InternVarReplaceRoot(NSCore, NewSymbol("*assert*"), false).SetDynamic() VarCompileFiles = InternVarReplaceRoot(NSCore, NewSymbol("*compile-files*"), false).SetDynamic() VarFile = InternVarReplaceRoot(NSCore, NewSymbol("*file*"), "NO_SOURCE_FILE").SetDynamic() VarDataReaders = InternVarReplaceRoot(NSCore, NewSymbol("*data-readers*"), emptyMap).SetDynamic() // TODO: use variant of InternVar that doesn't replace root. VarPrintInitialized = InternVarName(NSCore.Name(), NewSymbol("print-initialized")) VarPrOn = InternVarName(NSCore.Name(), NewSymbol("pr-on")) VarParents = InternVarName(NSCore.Name(), NewSymbol("parents")) )
var (
Numbers = &NumberMethods{} // eventually make these static; this will prevent inlining
)
var (
SymbolCoreNamespace = NewSymbol("glojure.core")
)
Functions ¶
func AppendWriter ¶
AppendWriter is a shim for clojure.core's use of Java's append() method, which is not available on go's io.Writer interface.
func AsInt ¶
AsInt returns any integral value as an int. If the value cannot be represented as an int, it returns false. Floats are not converted.
func AsNumber ¶
AsNumber returns any value as a number. If the value is not a number, it returns false.
func BooleanCast ¶
func CharLiteralFromRune ¶
CharLiteralFromRune returns a character literal from a rune.
func CloneThreadBindingFrame ¶
func CloneThreadBindingFrame() interface{}
func ConcatStrings ¶
func CreatePersistentHashMap ¶
func CreatePersistentTreeMap ¶
func CreatePersistentTreeMap(keyvals interface{}) interface{}
func CreatePersistentTreeSet ¶
func CreatePersistentTreeSet(keys ISeq) interface{}
func FieldOrMethod ¶
FieldOrMethod returns the field or method of the given name on the given value or pointer to a value, and a boolean indicating whether the field or method was found. If the given value is a pointer, it is dereferenced. If the value or pointer target is not a struct, or if no such field or method exists, nil and false are returned. The first letter of the name will be capitalized if it is not already. This is because Go exports fields and methods that start with a capital letter.
func GetDefault ¶
func GoMapIndex ¶
func GoMapIndex(m, k interface{}) interface{}
func GoSetMapIndex ¶
func GoSetMapIndex(m, k, v interface{})
func IdentityHash ¶
func IdentityHash(x interface{}) uint32
func IncP ¶
IncP increments a number value by one. If incrementing would overflow, it promotes the value to a wider type, or BigInt. If the value is not a number, it returns an error.
func MustAsNumber ¶
func MustNth ¶
func MustNth(x interface{}, i int) interface{}
MustNth returns the nth element of the vector. It panics if the index is out of range.
func NewArithmeticError ¶
func NewIllegalArgumentError ¶
func NewIllegalStateError ¶
func NewIndexOutOfBoundsError ¶
func NewIndexOutOfBoundsError() error
func NewTimeoutError ¶
NewTimeoutError creates a new timeout error.
func NumbersEqual ¶
func Peek ¶
func Peek(stk IPersistentStack) interface{}
func PopThreadBindings ¶
func PopThreadBindings()
func PrintString ¶
func PrintString(v interface{}) string
RTPrintString corresponds to Clojure's RT.printString.
func PushThreadBindings ¶
func PushThreadBindings(bindings IPersistentMap)
func Reduce ¶
func Reduce(f func(interface{}, interface{}) interface{}, seq ISeq) interface{}
Reduce applies the given function to each element of the ISeq.
func ReduceInit ¶
func ReduceInit(f func(interface{}, interface{}) interface{}, init interface{}, seq ISeq) interface{}
func ReduceKV ¶
func ReduceKV(f func(init, k, v interface{}) interface{}, init, coll interface{}) interface{}
func RemoveNamespace ¶
func RemoveNamespace(sym *Symbol)
func ResetThreadBindingFrame ¶
func ResetThreadBindingFrame(frame interface{})
func RuneFromCharLiteral ¶
RuneFromCharLiteral returns the rune value from a character literal.
func ShutdownAgents ¶
func ShutdownAgents()
func ToString ¶
func ToString(v interface{}) string
ToString converts a value to a string a la Java's .toString method.
func UncheckedByteCast ¶
func UncheckedFloatCast ¶
func UncheckedIntCast ¶
func UncheckedLongCast ¶
func UncheckedShortCast ¶
Types ¶
type AMapEntry ¶
type AMapEntry interface { APersistentVector IMapEntry }
type APersistentMap ¶
type APersistentMap interface { AFn IPersistentMap IHashEq }
type APersistentSet ¶
type APersistentSet interface { AFn IPersistentSet IHashEq }
type APersistentVector ¶
type APersistentVector interface { AFn IPersistentVector IHashEq Reversible }
type ArithmeticError ¶
type ArithmeticError struct {
// contains filtered or unexported fields
}
func (*ArithmeticError) Error ¶
func (e *ArithmeticError) Error() string
func (*ArithmeticError) Is ¶
func (e *ArithmeticError) Is(other error) bool
type ArrayNodeIterator ¶
type ArrayNodeIterator struct {
// contains filtered or unexported fields
}
func (*ArrayNodeIterator) HasNext ¶
func (iter *ArrayNodeIterator) HasNext() bool
func (*ArrayNodeIterator) Next ¶
func (iter *ArrayNodeIterator) Next() *Pair
type ArrayNodeSeq ¶
type ArrayNodeSeq struct {
// contains filtered or unexported fields
}
func (*ArrayNodeSeq) Cons ¶
func (s *ArrayNodeSeq) Cons(obj any) Conser
func (*ArrayNodeSeq) Count ¶
func (s *ArrayNodeSeq) Count() int
func (*ArrayNodeSeq) Empty ¶
func (s *ArrayNodeSeq) Empty() IPersistentCollection
func (*ArrayNodeSeq) Equals ¶
func (s *ArrayNodeSeq) Equals(obj any) bool
func (*ArrayNodeSeq) Equiv ¶
func (s *ArrayNodeSeq) Equiv(obj any) bool
func (*ArrayNodeSeq) First ¶
func (s *ArrayNodeSeq) First() any
func (*ArrayNodeSeq) Hash ¶
func (s *ArrayNodeSeq) Hash() uint32
func (*ArrayNodeSeq) HashEq ¶
func (s *ArrayNodeSeq) HashEq() uint32
func (*ArrayNodeSeq) Meta ¶
func (s *ArrayNodeSeq) Meta() IPersistentMap
func (*ArrayNodeSeq) More ¶
func (s *ArrayNodeSeq) More() ISeq
func (*ArrayNodeSeq) Next ¶
func (s *ArrayNodeSeq) Next() ISeq
func (*ArrayNodeSeq) Seq ¶
func (s *ArrayNodeSeq) Seq() ISeq
func (*ArrayNodeSeq) String ¶
func (s *ArrayNodeSeq) String() string
func (*ArrayNodeSeq) WithMeta ¶
func (s *ArrayNodeSeq) WithMeta(meta IPersistentMap) any
type Associative ¶
type Associative interface { IPersistentCollection ILookup ContainsKey(any) bool EntryAt(any) IMapEntry Assoc(k, v any) Associative }
func Assoc ¶
func Assoc(a any, k, v any) Associative
type Atom ¶
type Atom struct {
// contains filtered or unexported fields
}
func (*Atom) CompareAndSet ¶
func (*Atom) RemoveWatch ¶
func (a *Atom) RemoveWatch(key interface{})
func (*Atom) SetValidator ¶
func (*Atom) Watches ¶
func (a *Atom) Watches() IPersistentMap
type BigDecimal ¶
type BigDecimal struct {
// contains filtered or unexported fields
}
BigDec is an arbitrary-precision decimal number. It wraps and has the same semantics as big.Float. big.Float is not used directly because it is mutable, and the core BigDecimal should not be.
func AsBigDecimal ¶
func AsBigDecimal(x any) *BigDecimal
func NewBigDecimal ¶
func NewBigDecimal(s string) (*BigDecimal, error)
NewBigDecimal creates a new BigDecimal from a string.
func NewBigDecimalFromBigFloat ¶
func NewBigDecimalFromBigFloat(x *big.Float) *BigDecimal
NewBigDecimalFromBigFloat
func NewBigDecimalFromFloat64 ¶
func NewBigDecimalFromFloat64(x float64) *BigDecimal
NewBigDecimalFromFloat64 creates a new BigDecimal from a float64.
func NewBigDecimalFromInt64 ¶
func NewBigDecimalFromInt64(x int64) *BigDecimal
func (*BigDecimal) Abs ¶
func (n *BigDecimal) Abs() *BigDecimal
func (*BigDecimal) Add ¶
func (n *BigDecimal) Add(other *BigDecimal) *BigDecimal
func (*BigDecimal) AddInt ¶
func (n *BigDecimal) AddInt(x int) *BigDecimal
func (*BigDecimal) AddP ¶
func (n *BigDecimal) AddP(other *BigDecimal) *BigDecimal
func (*BigDecimal) Cmp ¶
func (n *BigDecimal) Cmp(other *BigDecimal) int
func (*BigDecimal) Divide ¶
func (n *BigDecimal) Divide(other *BigDecimal) *BigDecimal
func (*BigDecimal) Equals ¶
func (n *BigDecimal) Equals(v interface{}) bool
func (*BigDecimal) GT ¶
func (n *BigDecimal) GT(other *BigDecimal) bool
func (*BigDecimal) GTE ¶
func (n *BigDecimal) GTE(other *BigDecimal) bool
func (*BigDecimal) Hash ¶
func (n *BigDecimal) Hash() uint32
func (*BigDecimal) LT ¶
func (n *BigDecimal) LT(other *BigDecimal) bool
func (*BigDecimal) LTE ¶
func (n *BigDecimal) LTE(other *BigDecimal) bool
func (*BigDecimal) Multiply ¶
func (n *BigDecimal) Multiply(other *BigDecimal) *BigDecimal
func (*BigDecimal) Negate ¶
func (n *BigDecimal) Negate() *BigDecimal
func (*BigDecimal) Quotient ¶
func (n *BigDecimal) Quotient(other *BigDecimal) *BigDecimal
func (*BigDecimal) Remainder ¶
func (n *BigDecimal) Remainder(other *BigDecimal) *BigDecimal
func (*BigDecimal) String ¶
func (n *BigDecimal) String() string
func (*BigDecimal) Sub ¶
func (n *BigDecimal) Sub(other *BigDecimal) *BigDecimal
func (*BigDecimal) SubP ¶
func (n *BigDecimal) SubP(other *BigDecimal) *BigDecimal
func (*BigDecimal) ToBigInteger ¶
func (n *BigDecimal) ToBigInteger() *big.Int
type BigInt ¶
type BigInt struct {
// contains filtered or unexported fields
}
BigInt is an arbitrary-precision integer. It wraps and has the same semantics as big.Int. big.Int is not used directly because it is mutable, and the core BigInt should not be.
func NewBigIntFromGoBigInt ¶
func NewBigIntFromInt64 ¶
NewBigIntFromInt64 creates a new BigInt from an int64.
func NewBigIntWithBase ¶
NewBigIntWithBase creates a new BigInt from a string.
func (*BigInt) ToBigDecimal ¶
func (n *BigInt) ToBigDecimal() *BigDecimal
func (*BigInt) ToBigInteger ¶
type BitmapIndexedNode ¶
type BitmapIndexedNode struct {
// contains filtered or unexported fields
}
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
Box is a wrapper around a value that can be used to store values of different types in atomic.Value, which requires all stored values to have the same concrete type.
type ChunkBuffer ¶
type ChunkBuffer struct {
// contains filtered or unexported fields
}
func NewChunkBuffer ¶
func NewChunkBuffer(capacity int) *ChunkBuffer
func (*ChunkBuffer) Add ¶
func (cb *ChunkBuffer) Add(item interface{})
func (*ChunkBuffer) Chunk ¶
func (cb *ChunkBuffer) Chunk() IChunk
func (*ChunkBuffer) Count ¶
func (cb *ChunkBuffer) Count() int
type ChunkedCons ¶
type ChunkedCons struct {
// contains filtered or unexported fields
}
func NewChunkedCons ¶
func NewChunkedCons(chunk IChunk, more ISeq) *ChunkedCons
func (*ChunkedCons) ChunkedFirst ¶
func (c *ChunkedCons) ChunkedFirst() IChunk
func (*ChunkedCons) ChunkedMore ¶
func (c *ChunkedCons) ChunkedMore() ISeq
func (*ChunkedCons) ChunkedNext ¶
func (c *ChunkedCons) ChunkedNext() ISeq
func (*ChunkedCons) Cons ¶
func (c *ChunkedCons) Cons(o any) Conser
func (*ChunkedCons) Count ¶
func (c *ChunkedCons) Count() int
func (*ChunkedCons) Empty ¶
func (c *ChunkedCons) Empty() IPersistentCollection
func (*ChunkedCons) Equals ¶
func (c *ChunkedCons) Equals(o any) bool
func (*ChunkedCons) Equiv ¶
func (c *ChunkedCons) Equiv(o any) bool
func (*ChunkedCons) First ¶
func (c *ChunkedCons) First() any
func (*ChunkedCons) Hash ¶
func (c *ChunkedCons) Hash() uint32
func (*ChunkedCons) HashEq ¶
func (c *ChunkedCons) HashEq() uint32
func (*ChunkedCons) Meta ¶
func (c *ChunkedCons) Meta() IPersistentMap
func (*ChunkedCons) More ¶
func (c *ChunkedCons) More() ISeq
func (*ChunkedCons) Next ¶
func (c *ChunkedCons) Next() ISeq
func (*ChunkedCons) Seq ¶
func (c *ChunkedCons) Seq() ISeq
func (*ChunkedCons) String ¶
func (c *ChunkedCons) String() string
func (*ChunkedCons) WithMeta ¶
func (c *ChunkedCons) WithMeta(meta IPersistentMap) any
type Cons ¶
type Cons struct {
// contains filtered or unexported fields
}
func (*Cons) Empty ¶
func (c *Cons) Empty() IPersistentCollection
func (*Cons) Meta ¶
func (c *Cons) Meta() IPersistentMap
func (*Cons) WithMeta ¶
func (c *Cons) WithMeta(meta IPersistentMap) any
type Counted ¶
type Counted interface {
Count() int
}
Counted is an interface for compound values whose elements can be counted.
type Cycle ¶
type Cycle struct {
// contains filtered or unexported fields
}
func (*Cycle) Empty ¶
func (c *Cycle) Empty() IPersistentCollection
func (*Cycle) IsRealized ¶
func (*Cycle) Meta ¶
func (c *Cycle) Meta() IPersistentMap
func (*Cycle) ReduceInit ¶
func (*Cycle) WithMeta ¶
func (c *Cycle) WithMeta(meta IPersistentMap) interface{}
type EmptyList ¶
type EmptyList struct {
// contains filtered or unexported fields
}
func (*EmptyList) Empty ¶
func (e *EmptyList) Empty() IPersistentCollection
func (*EmptyList) Meta ¶
func (e *EmptyList) Meta() IPersistentMap
func (*EmptyList) Pop ¶
func (e *EmptyList) Pop() IPersistentStack
func (*EmptyList) WithMeta ¶
func (e *EmptyList) WithMeta(meta IPersistentMap) any
type EmptyMapIterator ¶
type EmptyMapIterator struct { }
type Environment ¶
type Environment interface { // PushScope returns a new Environment with a scope nested inside // this environment's scope. // // TODO: make this work properly for lexical scoping. PushScope() Environment // WithRecurTarget returns a new Environment with the given recur // target. A recur form will return a RecurError with the given // target. WithRecurTarget(target interface{}) Environment // BindLocal binds the given name to the given value in the local // scope. BindLocal(sym *Symbol, v interface{}) // DefVar defines a new var in the current namespace. DefVar(sym *Symbol, v interface{}) *Var // Eval evaluates a value representing an expression in this // environment. Eval(expr interface{}) (interface{}, error) EvalAST(n interface{}) (interface{}, error) // ResolveFile looks up a file in the environment. It should expand // relative paths to absolute paths. Relative paths are searched for // in the environments load paths. // // Deprecated ResolveFile(path string) (string, bool) // PushLoadPaths adds paths to the environment's list of load // paths. The provided paths will be searched for relative paths // first in the returned environment. // // Deprecated PushLoadPaths(paths []string) Environment SetCurrentNamespace(ns *Namespace) CurrentNamespace() *Namespace // Stdout returns the standard output stream for this environment. Stdout() io.Writer // Stderr returns the error output stream for this environment. Stderr() io.Writer // Context returns the context associated with this environment. Context() context.Context Errorf(form interface{}, format string, args ...interface{}) error }
Environment is an interface for execution environments.
var (
GlobalEnv Environment
)
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a value that represents an error.
func NewError ¶
func NewError(frame StackFrame, err error) *Error
NewError creates a new error value.
func (*Error) AddStack ¶
func (e *Error) AddStack(frame StackFrame) error
AddStack adds a new stack trace entry.
type GoMapSeq ¶
type GoMapSeq struct {
// contains filtered or unexported fields
}
func NewGoMapSeq ¶
func (*GoMapSeq) Empty ¶
func (s *GoMapSeq) Empty() IPersistentCollection
func (*GoMapSeq) Meta ¶
func (s *GoMapSeq) Meta() IPersistentMap
func (*GoMapSeq) WithMeta ¶
func (s *GoMapSeq) WithMeta(meta IPersistentMap) any
type HashCollisionNode ¶
type HashCollisionNode struct {
// contains filtered or unexported fields
}
type Hasher ¶
type Hasher interface {
Hash() uint32
}
Hasher is an interface for types that can be hashed. It's not in Clojure, but it's useful for Go where values don't come with a default hash method.
type IBlockingDeref ¶
func AgentSubmit ¶
func AgentSubmit(fn IFn) IBlockingDeref
type IChunkedSeq ¶
type IChunkedSeq interface { ISeq Sequential ChunkedFirst() IChunk ChunkedNext() ISeq ChunkedMore() ISeq }
type IDrop ¶
type IDrop interface {
Drop(n int) Sequential
}
type IEditableCollection ¶
type IEditableCollection interface {
AsTransient() ITransientCollection
}
type IFnFunc ¶
type IFnFunc func(args ...interface{}) interface{}
IFnFunc is a function that can be applied to a list of arguments.
type IMeta ¶
type IMeta interface { // Meta returns the metadata associated with this value. Meta() IPersistentMap }
IMeta is an interface for values that can have metadata.
type IObj ¶
type IObj interface { IMeta // WithMeta returns a new value with the given metadata. WithMeta(meta IPersistentMap) any }
type IPersistentCollection ¶
type IPersistentList ¶
type IPersistentList interface { Sequential IPersistentCollection IPersistentStack // Clojure's IPersistentList does not implement this, but it // likely should. ISeq }
func NewList ¶
func NewList(values ...any) IPersistentList
type IPersistentMap ¶
type IPersistentMap interface { //Iterable do we need this? Associative Counted // AssocEx is like Assoc, but returns an error if the key already // exists. AssocEx(key, val any) IPersistentMap // Without returns a new map with the given key removed. Without(key any) IPersistentMap }
func Merge ¶
func Merge(m1, m2 IPersistentMap) IPersistentMap
func NewMap ¶
func NewMap(keyVals ...any) IPersistentMap
func NewPersistentArrayMapAsIfByAssoc ¶
func NewPersistentArrayMapAsIfByAssoc(init []any) IPersistentMap
func NewPersistentHashMap ¶
func NewPersistentHashMap(keyvals ...any) IPersistentMap
func SafeMerge ¶
func SafeMerge(m1, m2 IPersistentMap) IPersistentMap
type IPersistentSet ¶
type IPersistentSet interface { IPersistentCollection Counted Disjoin(any) IPersistentSet Contains(any) bool Get(any) any }
type IPersistentStack ¶
type IPersistentStack interface { Peek() any Pop() IPersistentStack }
func Pop ¶
func Pop(stk IPersistentStack) IPersistentStack
type IPersistentVector ¶
type IPersistentVector interface { Associative Sequential IPersistentStack Reversible Indexed Counted // Note: not in Clojure's vector interface, oddly Length() int AssocN(int, any) IPersistentVector Cons(any) Conser }
IPersistentVector is a persistent vector.
func CreateLazilyPersistentVector ¶
func CreateLazilyPersistentVector(obj any) IPersistentVector
func CreateOwningLazilyPersistentVector ¶
func CreateOwningLazilyPersistentVector(items any) IPersistentVector
CreateOwningLazilyPersistentVector creates a persistent vector that owns the items in items. items must be a slice or array.
func Subvec ¶
func Subvec(v IPersistentVector, start, end int) IPersistentVector
type IReduceInit ¶
type ISeq ¶
type ISeq interface { IPersistentCollection Conser // First returns the first element of the sequence. First() any // Next returns the rest of the sequence, or nil if there are no // more. Next() ISeq // More returns true if there are more elements in the sequence. More() ISeq }
func Keys ¶
func Keys(m Associative) ISeq
func NewLazySeq ¶
func NewLazySeq(fn func() interface{}) ISeq
func NewLongRange ¶
NewLongRange returns a lazy sequence of start, start + step, start + 2*step, ...
func NewMapKeySeq ¶
func NewMapValSeq ¶
func NewRepeatN ¶
func NewSliceSeq ¶
func Vals ¶
func Vals(m Associative) ISeq
type ITransientAssociative ¶
type ITransientAssociative interface { ITransientCollection ILookup Assoc(any, any) ITransientAssociative }
type ITransientCollection ¶
type ITransientCollection interface { Conjer Persistent() IPersistentCollection }
type ITransientSet ¶
type ITransientSet interface { IPersistentCollection Counted Disjoin(any) ITransientSet Contains(any) bool Get(any) any }
type ITransientVector ¶
type ITransientVector interface { ITransientAssociative Indexed AssocN(int, any) ITransientVector Pop() ITransientVector }
type IllegalArgumentError ¶
type IllegalArgumentError struct {
// contains filtered or unexported fields
}
func (*IllegalArgumentError) Error ¶
func (e *IllegalArgumentError) Error() string
func (*IllegalArgumentError) Is ¶
func (e *IllegalArgumentError) Is(other error) bool
type IllegalStateError ¶
type IllegalStateError struct {
// contains filtered or unexported fields
}
func (*IllegalStateError) Error ¶
func (e *IllegalStateError) Error() string
func (*IllegalStateError) Is ¶
func (e *IllegalStateError) Is(other error) bool
type IndexOutOfBoundsError ¶
type IndexOutOfBoundsError struct{}
func (*IndexOutOfBoundsError) Error ¶
func (e *IndexOutOfBoundsError) Error() string
func (*IndexOutOfBoundsError) Is ¶
func (e *IndexOutOfBoundsError) Is(other error) bool
type IndexedSeq ¶
type IndexedSeq interface { ISeq Sequential Counted Index() int }
type Keyword ¶
type Keyword struct {
// contains filtered or unexported fields
}
Keyword represents a keyword. Syntactically, a keyword is a symbol that starts with a colon and evaluates to itself.
func InternKeyword ¶
func InternKeyword(ns, name interface{}) Keyword
func InternKeywordString ¶
func InternKeywordSymbol ¶
func NewKeyword ¶
type LazySeq ¶
type LazySeq struct {
// contains filtered or unexported fields
}
func (*LazySeq) Empty ¶
func (s *LazySeq) Empty() IPersistentCollection
func (*LazySeq) IsRealized ¶
func (*LazySeq) Meta ¶
func (s *LazySeq) Meta() IPersistentMap
func (*LazySeq) WithMeta ¶
func (s *LazySeq) WithMeta(meta IPersistentMap) interface{}
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a list of values.
func (*List) Empty ¶
func (l *List) Empty() IPersistentCollection
func (*List) Meta ¶
func (l *List) Meta() IPersistentMap
func (*List) Next ¶
Next returns the next list node. AKA cdr, with the requirement that it must be a list.
func (*List) Pop ¶
func (l *List) Pop() IPersistentStack
func (*List) WithMeta ¶
func (l *List) WithMeta(meta IPersistentMap) any
type LockingTransactor ¶
type LockingTransactor struct {
// contains filtered or unexported fields
}
func (*LockingTransactor) RunInTransaction ¶
func (lt *LockingTransactor) RunInTransaction(fn IFn) interface{}
type LongChunk ¶
type LongChunk struct {
// contains filtered or unexported fields
}
func NewLongChunk ¶
type LongRange ¶
type LongRange struct {
// contains filtered or unexported fields
}
func (*LongRange) ChunkedFirst ¶
func (*LongRange) ChunkedMore ¶
func (*LongRange) ChunkedNext ¶
func (*LongRange) Drop ¶
func (r *LongRange) Drop(n int) Sequential
func (*LongRange) Empty ¶
func (r *LongRange) Empty() IPersistentCollection
func (*LongRange) Meta ¶
func (r *LongRange) Meta() IPersistentMap
func (*LongRange) WithMeta ¶
func (r *LongRange) WithMeta(meta IPersistentMap) any
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map represents a map of glojure values.
func (*Map) AsTransient ¶
func (m *Map) AsTransient() ITransientCollection
func (*Map) Assoc ¶
func (m *Map) Assoc(k, v any) Associative
func (*Map) AssocEx ¶
func (m *Map) AssocEx(k, v any) IPersistentMap
func (*Map) ContainsKey ¶
func (*Map) Empty ¶
func (m *Map) Empty() IPersistentCollection
func (*Map) Meta ¶
func (m *Map) Meta() IPersistentMap
func (*Map) ValAtDefault ¶
func (*Map) WithMeta ¶
func (m *Map) WithMeta(meta IPersistentMap) any
func (*Map) Without ¶
func (m *Map) Without(k any) IPersistentMap
type MapEntry ¶
type MapEntry struct {
// contains filtered or unexported fields
}
MapEntry represents a key-value pair in a map.
func NewMapEntry ¶
func (*MapEntry) Assoc ¶
func (me *MapEntry) Assoc(k, v any) Associative
func (*MapEntry) ContainsKey ¶
func (*MapEntry) Empty ¶
func (me *MapEntry) Empty() IPersistentCollection
func (*MapEntry) Pop ¶
func (me *MapEntry) Pop() IPersistentStack
func (*MapEntry) ValAtDefault ¶
type MapIterator ¶
type MapKeySeq ¶
type MapKeySeq struct {
// contains filtered or unexported fields
}
func (*MapKeySeq) Empty ¶
func (s *MapKeySeq) Empty() IPersistentCollection
func (*MapKeySeq) Meta ¶
func (s *MapKeySeq) Meta() IPersistentMap
func (*MapKeySeq) WithMeta ¶
func (s *MapKeySeq) WithMeta(meta IPersistentMap) any
type MapSeq ¶
type MapSeq struct {
// contains filtered or unexported fields
}
func (*MapSeq) Drop ¶
func (s *MapSeq) Drop(n int) Sequential
func (*MapSeq) Empty ¶
func (s *MapSeq) Empty() IPersistentCollection
func (*MapSeq) Meta ¶
func (s *MapSeq) Meta() IPersistentMap
func (*MapSeq) WithMeta ¶
func (s *MapSeq) WithMeta(meta IPersistentMap) any
type MapValSeq ¶
type MapValSeq struct {
// contains filtered or unexported fields
}
func (*MapValSeq) Empty ¶
func (s *MapValSeq) Empty() IPersistentCollection
func (*MapValSeq) Meta ¶
func (s *MapValSeq) Meta() IPersistentMap
func (*MapValSeq) WithMeta ¶
func (s *MapValSeq) WithMeta(meta IPersistentMap) any
type MultiFn ¶
type MultiFn struct {
// contains filtered or unexported fields
}
func NewMultiFn ¶
func (*MultiFn) PreferMethod ¶
func (*MultiFn) PreferTable ¶
func (m *MultiFn) PreferTable() IPersistentMap
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
func FindNamespace ¶
func FindOrCreateNamespace ¶
func NamespaceFor ¶
func Namespaces ¶
func Namespaces() []*Namespace
func NewNamespace ¶
func (*Namespace) Aliases ¶
func (ns *Namespace) Aliases() IPersistentMap
func (*Namespace) FindInternedVar ¶
func (*Namespace) GetMapping ¶
func (*Namespace) InternWithValue ¶
func (*Namespace) LookupAlias ¶
func (*Namespace) Mappings ¶
func (ns *Namespace) Mappings() IPersistentMap
func (*Namespace) Meta ¶
func (ns *Namespace) Meta() IPersistentMap
func (*Namespace) Refer ¶
Refer adds a reference to an existing Var, possibly in another namespace, to this namespace.
func (*Namespace) ResetMeta ¶
func (ns *Namespace) ResetMeta(meta IPersistentMap) IPersistentMap
type NodeIterator ¶
type NodeIterator struct {
// contains filtered or unexported fields
}
func (*NodeIterator) HasNext ¶
func (iter *NodeIterator) HasNext() bool
func (*NodeIterator) Next ¶
func (iter *NodeIterator) Next() *Pair
type NodeSeq ¶
type NodeSeq struct {
// contains filtered or unexported fields
}
func (*NodeSeq) Empty ¶
func (s *NodeSeq) Empty() IPersistentCollection
func (*NodeSeq) Meta ¶
func (n *NodeSeq) Meta() IPersistentMap
func (*NodeSeq) WithMeta ¶
func (s *NodeSeq) WithMeta(meta IPersistentMap) any
type NumberMethods ¶
type NumberMethods struct{}
NumberMethods is a struct with methods that map to Clojure's Number class' static methods.
func (*NumberMethods) Add ¶
func (nm *NumberMethods) Add(x, y any) any
func (*NumberMethods) AddP ¶
func (nm *NumberMethods) AddP(x, y any) any
func (*NumberMethods) And ¶
func (nm *NumberMethods) And(x, y any) any
func (*NumberMethods) BooleanArray ¶
func (nm *NumberMethods) BooleanArray(sizeOrSeq any) []bool
func (*NumberMethods) BooleanArrayInit ¶
func (nm *NumberMethods) BooleanArrayInit(size int, init any) []bool
func (*NumberMethods) Booleans ¶
func (nm *NumberMethods) Booleans(x any) []bool
func (*NumberMethods) ByteArray ¶
func (nm *NumberMethods) ByteArray(sizeOrSeq any) []byte
func (*NumberMethods) ByteArrayInit ¶
func (nm *NumberMethods) ByteArrayInit(size int, init any) []byte
func (*NumberMethods) Bytes ¶
func (nm *NumberMethods) Bytes(x any) []byte
func (*NumberMethods) CharArray ¶
func (nm *NumberMethods) CharArray(sizeOrSeq any) []Char
func (*NumberMethods) CharArrayInit ¶
func (nm *NumberMethods) CharArrayInit(size int, init any) []Char
func (*NumberMethods) Chars ¶
func (nm *NumberMethods) Chars(x any) []Char
func (*NumberMethods) ClearBit ¶
func (nm *NumberMethods) ClearBit(x, y any) int64
func (*NumberMethods) Dec ¶
func (nm *NumberMethods) Dec(x any) any
func (*NumberMethods) Divide ¶
func (nm *NumberMethods) Divide(x, y any) any
func (*NumberMethods) DoubleArray ¶
func (nm *NumberMethods) DoubleArray(sizeOrSeq any) []float64
func (*NumberMethods) DoubleArrayInit ¶
func (nm *NumberMethods) DoubleArrayInit(size int, init any) []float64
func (*NumberMethods) Doubles ¶
func (nm *NumberMethods) Doubles(x any) []float64
func (*NumberMethods) Equiv ¶
func (nm *NumberMethods) Equiv(x, y any) bool
func (*NumberMethods) FlipBit ¶
func (nm *NumberMethods) FlipBit(x, y any) int64
func (*NumberMethods) FloatArray ¶
func (nm *NumberMethods) FloatArray(sizeOrSeq any) []float32
func (*NumberMethods) FloatArrayInit ¶
func (nm *NumberMethods) FloatArrayInit(size int, init any) []float32
func (*NumberMethods) Floats ¶
func (nm *NumberMethods) Floats(x any) []float32
func (*NumberMethods) Gt ¶
func (nm *NumberMethods) Gt(x, y any) bool
func (*NumberMethods) Gte ¶
func (nm *NumberMethods) Gte(x, y any) bool
func (*NumberMethods) Inc ¶
func (nm *NumberMethods) Inc(v any) any
func (*NumberMethods) IntArray ¶
func (nm *NumberMethods) IntArray(sizeOrSeq any) []int
func (*NumberMethods) IntArrayInit ¶
func (nm *NumberMethods) IntArrayInit(size int, init any) []int
func (*NumberMethods) Ints ¶
func (nm *NumberMethods) Ints(x any) []int
func (*NumberMethods) IsNeg ¶
func (nm *NumberMethods) IsNeg(x any) bool
func (*NumberMethods) IsPos ¶
func (nm *NumberMethods) IsPos(x any) bool
func (*NumberMethods) IsZero ¶
func (nm *NumberMethods) IsZero(x any) bool
func (*NumberMethods) LongArray ¶
func (nm *NumberMethods) LongArray(sizeOrSeq any) []int64
func (*NumberMethods) LongArrayInit ¶
func (nm *NumberMethods) LongArrayInit(size int, init any) []int64
func (*NumberMethods) Longs ¶
func (nm *NumberMethods) Longs(x any) []int64
func (*NumberMethods) Lt ¶
func (nm *NumberMethods) Lt(x, y any) bool
func (*NumberMethods) Lte ¶
func (nm *NumberMethods) Lte(x, y any) bool
func (*NumberMethods) Max ¶
func (nm *NumberMethods) Max(x, y any) any
func (*NumberMethods) Min ¶
func (nm *NumberMethods) Min(x, y any) any
func (*NumberMethods) Minus ¶
func (nm *NumberMethods) Minus(x, y any) any
func (*NumberMethods) MinusP ¶
func (nm *NumberMethods) MinusP(x, y any) any
func (*NumberMethods) Multiply ¶
func (nm *NumberMethods) Multiply(x, y any) any
func (*NumberMethods) MultiplyP ¶
func (nm *NumberMethods) MultiplyP(x, y any) any
func (*NumberMethods) Quotient ¶
func (nm *NumberMethods) Quotient(x, y any) any
func (*NumberMethods) Remainder ¶
func (nm *NumberMethods) Remainder(x, y any) any
func (*NumberMethods) SetBit ¶
func (nm *NumberMethods) SetBit(x, y any) int64
func (*NumberMethods) ShiftLeft ¶
func (nm *NumberMethods) ShiftLeft(x, y any) int64
func (*NumberMethods) ShiftRight ¶
func (nm *NumberMethods) ShiftRight(x, y any) int64
func (*NumberMethods) ShortArray ¶
func (nm *NumberMethods) ShortArray(sizeOrSeq any) []int16
func (*NumberMethods) ShortArrayInit ¶
func (nm *NumberMethods) ShortArrayInit(size int, init any) []int16
func (*NumberMethods) Shorts ¶
func (nm *NumberMethods) Shorts(x any) []int16
func (*NumberMethods) TestBit ¶
func (nm *NumberMethods) TestBit(x, y any) bool
func (*NumberMethods) UncheckedAdd ¶
func (nm *NumberMethods) UncheckedAdd(x, y any) any
func (*NumberMethods) UncheckedDec ¶
func (nm *NumberMethods) UncheckedDec(x any) any
func (*NumberMethods) UncheckedIntDivide ¶
func (nm *NumberMethods) UncheckedIntDivide(x, y int) any
func (*NumberMethods) Unchecked_inc ¶
func (nm *NumberMethods) Unchecked_inc(v any) any
func (*NumberMethods) Unchecked_minus ¶
func (nm *NumberMethods) Unchecked_minus(x, y any) any
func (*NumberMethods) Unchecked_multiply ¶
func (nm *NumberMethods) Unchecked_multiply(x, y any) any
func (*NumberMethods) Unchecked_negate ¶
func (nm *NumberMethods) Unchecked_negate(x any) any
func (*NumberMethods) UnsignedShiftRight ¶
func (nm *NumberMethods) UnsignedShiftRight(x, y any) int64
type PersistentHashMap ¶
type PersistentHashMap struct {
// contains filtered or unexported fields
}
func (*PersistentHashMap) ApplyTo ¶
func (m *PersistentHashMap) ApplyTo(args ISeq) any
func (*PersistentHashMap) Assoc ¶
func (m *PersistentHashMap) Assoc(key, val any) Associative
func (*PersistentHashMap) AssocEx ¶
func (m *PersistentHashMap) AssocEx(key, val any) IPersistentMap
func (*PersistentHashMap) Cons ¶
func (m *PersistentHashMap) Cons(o any) Conser
func (*PersistentHashMap) ContainsKey ¶
func (m *PersistentHashMap) ContainsKey(k any) bool
func (*PersistentHashMap) Count ¶
func (m *PersistentHashMap) Count() int
func (*PersistentHashMap) Empty ¶
func (m *PersistentHashMap) Empty() IPersistentCollection
func (*PersistentHashMap) EntryAt ¶
func (m *PersistentHashMap) EntryAt(key any) IMapEntry
func (*PersistentHashMap) Equiv ¶
func (m *PersistentHashMap) Equiv(o any) bool
func (*PersistentHashMap) HashEq ¶
func (m *PersistentHashMap) HashEq() uint32
func (*PersistentHashMap) Invoke ¶
func (m *PersistentHashMap) Invoke(args ...any) any
func (*PersistentHashMap) Meta ¶
func (m *PersistentHashMap) Meta() IPersistentMap
func (*PersistentHashMap) Reduce ¶
func (m *PersistentHashMap) Reduce(f IFn) any
func (*PersistentHashMap) ReduceInit ¶
func (m *PersistentHashMap) ReduceInit(f IFn, init any) any
func (*PersistentHashMap) Seq ¶
func (m *PersistentHashMap) Seq() ISeq
func (*PersistentHashMap) String ¶
func (m *PersistentHashMap) String() string
func (*PersistentHashMap) ValAt ¶
func (m *PersistentHashMap) ValAt(key any) any
func (*PersistentHashMap) ValAtDefault ¶
func (m *PersistentHashMap) ValAtDefault(key, notFound any) any
func (*PersistentHashMap) WithMeta ¶
func (m *PersistentHashMap) WithMeta(meta IPersistentMap) any
func (*PersistentHashMap) Without ¶
func (m *PersistentHashMap) Without(key any) IPersistentMap
type PersistentHashSet ¶
type PersistentHashSet = Set // hack until we have a proper persistent hash set
type PersistentStructMap ¶
type PersistentStructMap struct {
// contains filtered or unexported fields
}
func ConstructPersistentStructMap ¶
func ConstructPersistentStructMap(def *PersistentStructMapDef, valseq ISeq) *PersistentStructMap
func (*PersistentStructMap) ApplyTo ¶
func (m *PersistentStructMap) ApplyTo(args ISeq) any
func (*PersistentStructMap) Assoc ¶
func (m *PersistentStructMap) Assoc(k any, v any) Associative
func (*PersistentStructMap) AssocEx ¶
func (m *PersistentStructMap) AssocEx(k, v any) IPersistentMap
func (*PersistentStructMap) Cons ¶
func (m *PersistentStructMap) Cons(x any) Conser
func (*PersistentStructMap) ContainsKey ¶
func (m *PersistentStructMap) ContainsKey(k any) bool
func (*PersistentStructMap) Count ¶
func (m *PersistentStructMap) Count() int
func (*PersistentStructMap) Empty ¶
func (m *PersistentStructMap) Empty() IPersistentCollection
func (*PersistentStructMap) EntryAt ¶
func (m *PersistentStructMap) EntryAt(k any) IMapEntry
func (*PersistentStructMap) Equiv ¶
func (m *PersistentStructMap) Equiv(o any) bool
func (*PersistentStructMap) HashEq ¶
func (m *PersistentStructMap) HashEq() uint32
func (*PersistentStructMap) Invoke ¶
func (m *PersistentStructMap) Invoke(args ...any) any
func (*PersistentStructMap) Meta ¶
func (m *PersistentStructMap) Meta() IPersistentMap
func (*PersistentStructMap) Seq ¶
func (m *PersistentStructMap) Seq() ISeq
func (*PersistentStructMap) ValAt ¶
func (m *PersistentStructMap) ValAt(key any) any
func (*PersistentStructMap) ValAtDefault ¶
func (m *PersistentStructMap) ValAtDefault(key, def any) any
func (*PersistentStructMap) WithMeta ¶
func (m *PersistentStructMap) WithMeta(meta IPersistentMap) any
func (*PersistentStructMap) Without ¶
func (m *PersistentStructMap) Without(k any) IPersistentMap
type PersistentStructMapDef ¶
type PersistentStructMapDef struct {
// contains filtered or unexported fields
}
func CreatePersistentStructMapSlotMap ¶
func CreatePersistentStructMapSlotMap(keys ISeq) *PersistentStructMapDef
type Range ¶
type Range struct {
// contains filtered or unexported fields
}
func (*Range) ChunkedFirst ¶
func (*Range) ChunkedMore ¶
func (*Range) ChunkedNext ¶
func (*Range) Empty ¶
func (r *Range) Empty() IPersistentCollection
func (*Range) ForceChunk ¶
func (r *Range) ForceChunk()
func (*Range) Meta ¶
func (r *Range) Meta() IPersistentMap
func (*Range) WithMeta ¶
func (r *Range) WithMeta(meta IPersistentMap) any
type Ratio ¶
type Ratio struct {
// contains filtered or unexported fields
}
Ratio is a value that represents a ratio.
func NewRatioBigInt ¶
func NewRatioGoBigInt ¶
func (*Ratio) BigIntegerValue ¶
func (*Ratio) Denominator ¶
type RecurError ¶
type RecurError struct { Target interface{} Args []interface{} }
RecurError is an error returned by a recur form.
func (*RecurError) Error ¶
func (e *RecurError) Error() string
func (*RecurError) Is ¶
func (e *RecurError) Is(err error) bool
Is returns true if the given error is a RecurError with the same target.
type RecurTarget ¶
type RecurTarget struct { }
func NewRecurTarget ¶
func NewRecurTarget() *RecurTarget
type Reduced ¶
type Reduced struct {
// contains filtered or unexported fields
}
func NewReduced ¶
func NewReduced(v interface{}) *Reduced
type Ref ¶
type Ref struct {
// contains filtered or unexported fields
}
Ref is a reference to a value that can be updated transactionally.
type RegexpMatcher ¶
type RegexpMatcher struct {
// contains filtered or unexported fields
}
RegexpMatcher is a matcher that matches a string against a regular expression. It's a wrapper around standard library functions. We implement this to simplify a translation of clojure regexp core functions to go.
func NewRegexpMatcher ¶
func NewRegexpMatcher(re *regexp.Regexp, s string) *RegexpMatcher
NewRegexpMatcher creates a new RegexpMatcher.
func (*RegexpMatcher) AppendReplacement ¶
func (m *RegexpMatcher) AppendReplacement(sb io.Writer, replacement string) *RegexpMatcher
AppendReplacement implements a non-terminal append-and-replace step.
func (*RegexpMatcher) AppendTail ¶
func (m *RegexpMatcher) AppendTail(sb io.Writer)
AppendTail implements a terminal append-and-replace step.
func (*RegexpMatcher) Find ¶
func (m *RegexpMatcher) Find() bool
Find attempts to find the next subsequence of the input sequence that matches the pattern.
func (*RegexpMatcher) Group ¶
func (m *RegexpMatcher) Group() string
Group returns the input subsequence matched by the previous match.
func (*RegexpMatcher) GroupCount ¶
func (m *RegexpMatcher) GroupCount() int
GroupCount returns the number of capturing groups in this matcher's pattern.
func (*RegexpMatcher) GroupInt ¶
func (m *RegexpMatcher) GroupInt(group int) any
GroupInt returns the input subsequence captured by the given group during the previous match operation.
func (*RegexpMatcher) Matches ¶
func (m *RegexpMatcher) Matches() bool
Matches attempts to match the entire region against the pattern.
type Repeat ¶
type Repeat struct {
// contains filtered or unexported fields
}
func (*Repeat) Empty ¶
func (r *Repeat) Empty() IPersistentCollection
func (*Repeat) Meta ¶
func (r *Repeat) Meta() IPersistentMap
func (*Repeat) ReduceInit ¶
func (*Repeat) WithMeta ¶
func (r *Repeat) WithMeta(meta IPersistentMap) any
type Reversible ¶
type Reversible interface {
RSeq() ISeq
}
type Sequential ¶
type Sequential interface {
// contains filtered or unexported methods
}
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set represents a map of glojure values.
func (*Set) AsTransient ¶
func (s *Set) AsTransient() ITransientCollection
func (*Set) Disjoin ¶
func (s *Set) Disjoin(v interface{}) IPersistentSet
func (*Set) Empty ¶
func (s *Set) Empty() IPersistentCollection
func (*Set) Meta ¶
func (s *Set) Meta() IPersistentMap
func (*Set) WithMeta ¶
func (s *Set) WithMeta(meta IPersistentMap) interface{}
type SliceChunk ¶
type SliceChunk struct {
// contains filtered or unexported fields
}
func NewSliceChunk ¶
func NewSliceChunk(slc []interface{}) *SliceChunk
func (*SliceChunk) Count ¶
func (sc *SliceChunk) Count() int
func (*SliceChunk) DropFirst ¶
func (sc *SliceChunk) DropFirst() IChunk
func (*SliceChunk) Nth ¶
func (sc *SliceChunk) Nth(i int) interface{}
func (*SliceChunk) NthDefault ¶
func (sc *SliceChunk) NthDefault(i int, def interface{}) interface{}
func (*SliceChunk) ReduceInit ¶
func (sc *SliceChunk) ReduceInit(fn IFn, init interface{}) interface{}
type SliceSeq ¶
type SliceSeq struct {
// contains filtered or unexported fields
}
SliceSeq is an implementation of ISeq for slices.
func (*SliceSeq) Empty ¶
func (s *SliceSeq) Empty() IPersistentCollection
func (*SliceSeq) Meta ¶
func (s *SliceSeq) Meta() IPersistentMap
func (*SliceSeq) WithMeta ¶
func (s *SliceSeq) WithMeta(meta IPersistentMap) any
type StackFrame ¶
type Stacker ¶
type Stacker interface {
Stack() []StackFrame
}
Stacker is an interface for retrieving stack traces.
type StringSeq ¶
type StringSeq struct {
// contains filtered or unexported fields
}
func NewStringSeq ¶
func (*StringSeq) Drop ¶
func (s *StringSeq) Drop(n int) Sequential
func (*StringSeq) Empty ¶
func (s *StringSeq) Empty() IPersistentCollection
func (*StringSeq) Meta ¶
func (s *StringSeq) Meta() IPersistentMap
func (*StringSeq) WithMeta ¶
func (s *StringSeq) WithMeta(meta IPersistentMap) any
type SubVector ¶
type SubVector struct {
// contains filtered or unexported fields
}
func NewSubVector ¶
func NewSubVector(meta IPersistentMap, v IPersistentVector, start, end int) *SubVector
func (*SubVector) Assoc ¶
func (v *SubVector) Assoc(key, val interface{}) Associative
func (*SubVector) AssocN ¶
func (v *SubVector) AssocN(i int, val interface{}) IPersistentVector
func (*SubVector) ContainsKey ¶
func (*SubVector) Empty ¶
func (v *SubVector) Empty() IPersistentCollection
func (*SubVector) Meta ¶
func (v *SubVector) Meta() IPersistentMap
func (*SubVector) NthDefault ¶
func (*SubVector) Pop ¶
func (v *SubVector) Pop() IPersistentStack
func (*SubVector) ValAtDefault ¶
func (v *SubVector) ValAtDefault(k, def interface{}) interface{}
func (*SubVector) WithMeta ¶
func (v *SubVector) WithMeta(meta IPersistentMap) interface{}
type Symbol ¶
type Symbol struct {
// contains filtered or unexported fields
}
func InternSymbol ¶
func InternSymbol(ns, name interface{}) *Symbol
func (*Symbol) Meta ¶
func (s *Symbol) Meta() IPersistentMap