Versions in this module Expand all Collapse all v0 v0.12.0 Jul 8, 2018 Changes in this version + const NoPretty + var EmptyList = vector.Empty + var EmptyMap = hashmap.New(Equal, Hash) + var ErrConcatNotImplemented = errors.New("cat not implemented") + var ErrIndexMustBeString = errors.New("index must be string") + var ErrOnlyStrOrRat = errors.New("only str or rat may be converted to rat") + func Assoc(a, k, v interface{}) (interface{}, error) + func Bool(v interface{}) bool + func Collect(it interface{}) ([]interface{}, error) + func Concat(lhs, rhs interface{}) (interface{}, error) + func Dissoc(a, k interface{}) interface + func Equal(x, y interface{}) bool + func Feed(f func(interface{}) bool, values ...interface{}) + func FromGo(a interface{}) interface + func Hash(v interface{}) uint32 + func Index(a, k interface{}) (interface{}, error) + func Iterate(v interface{}, f func(interface{}) bool) error + func IterateKeys(v interface{}, f func(interface{}) bool) error + func Kind(v interface{}) string + func Len(v interface{}) int + func MakeList(vs ...interface{}) vector.Vector + func MakeMap(raw map[interface{}]interface{}) hashmap.Map + func MakeMapFromKV(a ...interface{}) hashmap.Map + func MakeStringList(vs ...string) vector.Vector + func NoSuchKey(k interface{}) error + func Repr(v interface{}, indent int) string + func ScanToGo(src interface{}, ptr interface{}) error + func ToString(v interface{}) string + type Assocer interface + Assoc func(k, v interface{}) (interface{}, error) + type Booler interface + Bool func() bool + type Concatter interface + Concat func(v interface{}) (interface{}, error) + type Dissocer interface + Dissoc func(k interface{}) interface{} + type Equaler interface + Equal func(other interface{}) bool + type ErrIndexer interface + Index func(k interface{}) (interface{}, error) + type File struct + Inner *os.File + func NewFile(inner *os.File) File + func (File) Kind() string + func (f File) Equal(rhs interface{}) bool + func (f File) Hash() uint32 + func (f File) Repr(int) string + type Hasher interface + Hash func() uint32 + type Indexer interface + Index func(k interface{}) (v interface{}, ok bool) + type Iterator interface + Iterate func(func(v interface{}) bool) + type KeysIterator interface + IterateKeys func(func(v interface{}) bool) + type Kinder interface + Kind func() string + type Lener interface + Len func() int + type ListIndex struct + Lower int + Slice bool + Upper int + func ConvertListIndex(rawIndex interface{}, n int) (*ListIndex, error) + type ListReprBuilder struct + Indent int + func (b *ListReprBuilder) String() string + func (b *ListReprBuilder) WriteElem(v string) + type MapReprBuilder struct + func (b *MapReprBuilder) String() string + func (b *MapReprBuilder) WritePair(k string, indent int, v string) + type Pipe struct + ReadEnd *os.File + WriteEnd *os.File + func NewPipe(r, w *os.File) Pipe + func (Pipe) Kind() string + func (p Pipe) Equal(rhs interface{}) bool + func (p Pipe) Hash() uint32 + func (p Pipe) Repr(int) string + type RConcatter interface + RConcat func(v interface{}) (interface{}, error) + type Rat struct + func ToRat(v interface{}) (Rat, error) + func (Rat) Kind() string + func (r Rat) Equal(a interface{}) bool + func (r Rat) Hash() uint32 + func (r Rat) Repr(int) string + func (r Rat) String() string + type Reprer interface + Repr func(indent int) string + type Scanner interface + ScanElvish func(interface{}) error + type Stringer interface + String func() string + type Struct struct + func NewStruct(descriptor *StructDescriptor, fields []interface{}) *Struct + func (*Struct) Kind() string + func (s *Struct) Assoc(k, v interface{}) (interface{}, error) + func (s *Struct) Equal(rhs interface{}) bool + func (s *Struct) HasKey(k interface{}) bool + func (s *Struct) Hash() uint32 + func (s *Struct) Index(k interface{}) (interface{}, bool) + func (s *Struct) IterateKey(f func(interface{}) bool) + func (s *Struct) IteratePair(f func(interface{}, interface{}) bool) + func (s *Struct) Len() int + func (s *Struct) MarshalJSON() ([]byte, error) + func (s *Struct) Repr(indent int) string + type StructDescriptor struct + func NewStructDescriptor(fields ...string) *StructDescriptor