Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character rune // TODO: possibly move out of string file
Character represents an EDN character: \a, \b, \c, \newline, etc...
type Float ¶
type Float float64
Float represents EDN floats: 1.234, -1.2925e+9
type Int ¶
type Int int64
Int represents EDN integers: 1, -5, 1000.
type Keyword ¶
type Keyword string
Keyword represents an EDN keyword: :foo/bar or :baz
type List ¶
List is a type that represents an EDN list, such as: (1 2 3)
func (*List) Each ¶
Each calls the provided function once for each item in its collection.
The provided function is passed the item and its index: f(item, index).
func (*List) Into ¶
Into returns a new Sequence (backed by a List) with the items from both the current List and the other Sequence.
type Map ¶
Map represents an EDN map: {:a "b", 123 true}
type Sequence ¶
Sequence is a Value interface that provides a common abstraction for working with all EDN sequences (Lists, Maps, Sets, and Vectors)
type Set ¶
Set represents an EDN set: #{1 2 3}
func (Set) Each ¶
Each calls the provided function once for each item in its collection.
The provided function is passed the item and its index: f(item, index).
func (Set) Insert ¶
Insert adds a non-present Value into the Set and returns the Set. Adding an existing Value will have no effect.
func (Set) Into ¶
Into returns a new Sequence (backed by a Set) with the items from both the current Set and the other Sequence.
type String ¶
type String string
String represents an EDN string: "abc"
type Vector ¶
type Vector []Value
Vector represents an EDN vector: [1 2 3]
func (Vector) Each ¶
Each calls the provided function once for each item in its collection.
The provided function is passed the item and its index: f(item, index).
func (Vector) Into ¶
Into returns a new Sequence (backed by a Vector) with the items from both the current Vector and the other Sequence.