collections

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Includes added in v0.12.0

func Includes(ctx context.Context, args ...core.Value) (core.Value, error)

INCLUDES checks whether a container includes a given value. @param {String | Any[] | Object | Iterable} haystack - The value container. @param {Any} needle - The target value to assert. @return {Boolean} - A boolean value that indicates whether a container contains a given value.

func Length

func Length(_ context.Context, inputs ...core.Value) (core.Value, error)

LENGTH returns the length of a measurable value. @param {Measurable} value - The value to measure. @return {Int} - The length of the value.

func RegisterLib added in v0.8.0

func RegisterLib(ns core.Namespace) error

func Reverse added in v0.7.0

func Reverse(_ context.Context, args ...core.Value) (core.Value, error)

REVERSE returns the reverse of a given string or array value. @param {String | Any[]} value - The string or array to reverse. @return {String | Any[]} - A reversed version of a given value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL