Hugo collections.After
Hugo Returns a slice containing the elements after the first N elements of the given slice.
Hugo collections.Append
Hugo Returns a slice by adding one or more elements, or an entire second slice, to the end of the given slice.
Hugo collections.Apply
Hugo Returns a slice by transforming each element of the given slice using a specific function and parameters.
Hugo collections.Complement
Hugo Returns a slice by identifying elements in the last given slice that do not appear in any of the preceding slices.
Hugo collections.D
Hugo Returns a sorted slice of unique random integers based on a given seed, count, and maximum value.
Hugo collections.Delimit
Hugo Returns a string by joining the values of the given slice or map with a delimiter.
Hugo collections.Dictionary
Hugo Returns a map created from the given key-value pairs.
Hugo collections.First
Hugo Returns the first N elements of the given slice or string.
Hugo collections.Group
Hugo Returns a map by grouping the given page collection (slice) by a specific key.
Hugo collections.In
Hugo Reports whether a value exists within the given slice or string.
Hugo collections.Index
Hugo Returns an element or value from the given slice or map at the specified key(s).
Hugo collections.Intersect
Hugo Returns a slice containing the common elements found in two given slices, in the same order as the first slice.
Hugo collections.IsSet
Hugo Reports whether a specific key or index exists in the given map or slice.
Hugo collections.KeyVals
Hugo Returns a KeyVals struct by pairing a given key and values.
Hugo collections.Last
Hugo Returns the last N elements of the given slice or string.
Hugo collections.Merge
Hugo Returns a map by combining two or more given maps.
Hugo collections.NewScratch
Hugo Returns a locally scoped "scratch pad" to store and manipulate data.
Hugo collections.Querify
Hugo Returns a URL query string from the given map, slice, or sequence of key-value pairs.
Hugo collections.Reverse
Hugo Returns a slice by reversing the order of elements in the given slice.
Hugo collections.Seq
Hugo Returns a slice of integers starting from 1 or a given value, incrementing by 1 or a given value, and ending at a given value.
Hugo collections.Shuffle
Hugo Returns a slice by randomizing the element order of the given slice.
Hugo collections.Slice
Hugo Returns a slice created from the given values.
Hugo collections.Sort
Returns a sorted map or slice by reordering the given collection by a key and order.
Hugo collections.SymDiff
Hugo Returns a slice containing the symmetric difference of two given slices.
Hugo collections.Union
Hugo Returns a slice containing the unique elements from two given slices.
Hugo collections.Uniq
Hugo Returns a slice by removing duplicate elements from the given slice.
Hugo collections.Where
Hugo Returns a slice by filtering the given slice based on a key, operator, and value.