Documentation ¶
Index ¶
- Constants
- func Contains[E Value](collection Value, value E) bool
- func Eq[E Value](a, b E) bool
- type Bool
- type Chan
- type Collection
- type Float
- type HashMap
- func (m HashMap[K, V]) Clear()
- func (m HashMap[K, V]) Contains(key K) bool
- func (m HashMap[K, V]) Eq(other HashMap[K, V]) bool
- func (m HashMap[K, V]) Get(key K) (V, bool)
- func (m HashMap[K, V]) Keys() *List[K]
- func (m HashMap[K, V]) Len() int
- func (m HashMap[K, V]) MarshalText() ([]byte, error)
- func (m HashMap[K, V]) Put(key K, value V)
- func (m HashMap[K, V]) Remove(key K)
- func (m HashMap[K, V]) Seq() Seq[*List[Value]]
- func (m HashMap[K, V]) String() string
- func (HashMap[K, V]) Type() Value
- func (m HashMap[K, V]) Values() *List[V]
- type Hashable
- type Int
- type Keyword
- func (keyword Keyword) Eq(other Keyword) bool
- func (keyword Keyword) GoString() string
- func (keyword Keyword) MarshalText() ([]byte, error)
- func (keyword Keyword) Name() string
- func (keyword Keyword) String() string
- func (keyword Keyword) Type() Value
- func (keyword *Keyword) UnmarshalText(bb []byte) error
- type List
- func (l *List[E]) Conj(values ...E) *List[E]
- func (list *List[E]) Contains(value E) bool
- func (l *List[E]) Empty() bool
- func (l *List[E]) Eq(other *List[E]) bool
- func (l *List[E]) First() (E, bool)
- func (l *List[E]) Len() int
- func (list List[E]) MarshalText() ([]byte, error)
- func (l *List[E]) Next() Seq[E]
- func (list *List[E]) Seq() Seq[E]
- func (list List[E]) String() string
- func (*List[E]) Type() Value
- type Seq
- type String
- type Symbol
- type Value
- type ValueEq
Constants ¶
View Source
const Any = Symbol("core.Any")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type HashMap ¶
func (HashMap[K, V]) MarshalText ¶
type Hashable ¶
type Hashable interface { Value comparable }
type Keyword ¶
type Keyword string
Keyword is a string that starts with a colon. Examples:
:foo :bar? :baz_123
It resolves to itself, so you can use it as a map key.
func (Keyword) MarshalText ¶
func (*Keyword) UnmarshalText ¶
type List ¶
type List[E Value] struct { // contains filtered or unexported fields }
func (List[E]) MarshalText ¶
type Symbol ¶
type Symbol string
Symbol is a string that resolves to a value. It can be used as a map key if quoted.
func (Symbol) MarshalText ¶
func (*Symbol) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.