collections

package
v2.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(ctx context.Context, arg runtime.Value) (runtime.Value, error)

COUNT computes the number of distinct elements in the given collection and returns the count as an integer.

func CountDistinct

func CountDistinct(ctx context.Context, arg runtime.Value) (runtime.Value, error)

COUNT_DISTINCT computes the number of distinct elements in the given collection and returns the count as an integer.

func Includes

func Includes(ctx context.Context, arg1, arg2 runtime.Value) (runtime.Value, error)

INCLUDES checks whether a container includes a given value. @param {String | Any[] | hashMap | 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 RegisterLib

func RegisterLib(ns runtime.Namespace)

func Reverse

func Reverse(ctx context.Context, arg runtime.Value) (runtime.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