Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSON jsonEngine
Functions ¶
Types ¶
type Array ¶
type Array[T comparable] interface { First() T Last() T At(i int) T Get(i int) T Take(i int) T Push(v ...T) int Pop() T Slice(start int, stop ...int) Array[T] Splice(offset int, length int, v ...T) Array[T] Contains(v T) bool IndexOf(v T) int Length() int Find(fn ArrayPredicate[T]) T Filter(fn ArrayPredicate[T]) []T ForEach(fn ArrayCallback[T]) }
func NewArray ¶
func NewArray[T comparable](data ...T) Array[T]
type ArrayCallback ¶
type ArrayCallback[T comparable] func(value T, index int)
type ArrayPredicate ¶
type ArrayPredicate[T comparable] func(value T) bool
Click to show internal directories.
Click to hide internal directories.