collections

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

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