collections.After
Slices an array to the items after the Nth item.
collections.Append
Appends one or more elements to a slice and returns the resulting slice.
collections.Apply
Returns a new collection with each element transformed by the given function.
collections.Complement
Returns the elements of the last collection that are not in any of the others.
collections.Delimit
Loops through any array, slice, or map and returns a string of all the values separated by a delimiter.
collections.Dictionary
Returns a map composed of the given key-value pairs.
collections.First
Returns the given collection, limited to the first N elements.
collections.Group
Groups the given page collection by the given key.
collections.In
Reports whether the given value is a member of the given set.
collections.Index
Returns the object, element, or value associated with the given key or keys.
collections.Intersect
Returns the common elements of two arrays or slices, in the same order as the first array.
collections.IsSet
Reports whether the key exists within the collection.
collections.KeyVals
Returns a KeyVals struct.
collections.Last
Returns the given collection, limited to the last N elements.
collections.Merge
Returns the result of merging two or more maps.
collections.NewScratch
Returns a locally scoped "scratch pad" to store and manipulate data.
collections.Querify
Returns a URL query string composed of the given key-value pairs, encoded and sorted by key.
collections.Reverse
Reverses the order of a collection.
collections.Seq
Returns a slice of integers.
collections.Shuffle
Returns a random permutation of a given array or slice.
collections.Slice
Returns a slice composed of the given values.
collections.Sort
Sorts slices, maps, and page collections.
collections.SymDiff
Returns the symmetric difference of two collections.
collections.Union
Given two arrays or slices, returns a new array that contains the elements that belong to either or both arrays/slices.
collections.Uniq
Returns the given collection, removing duplicate elements.
collections.Where
Returns the given collection, removing elements that do not satisfy the comparison condition.