array

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrependN

func PrependN[T number.Number](array []T, element T) []T

PrependN adds an element to the beginning of the array.

Parameters: - array: the array to prepend the element to. - element: the element to add to the array. Returns the updated array.

func PrependS

func PrependS(array []string, element string) []string

PrependS adds an element to the beginning of the string array.

Parameters: - array: the string array to prepend the element to. - element: the string element to add to the array. Returns the updated string array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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