mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-15 01:25:00 +02:00
Feature/doc markup (#543)
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
This commit is contained in:
@ -8,12 +8,11 @@ import (
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values/types"
|
||||
)
|
||||
|
||||
// Unshift prepends value to a given array.
|
||||
// @param array (Array) - Target array.
|
||||
// @param value (Read) - Target value to prepend.
|
||||
// @param unique (Boolean, optional) - Optional value indicating whether a value must be unique to be prepended.
|
||||
// Default is false.
|
||||
// @returns (Array) - New array with prepended value.
|
||||
// UNSHIFT prepends value to a given array.
|
||||
// @param {Any[]} array - Target array.
|
||||
// @param {Any} value - Target value to prepend.
|
||||
// @param {Boolean} [unique=False] - Optional value indicating whether a value must be unique to be prepended. Default is false.
|
||||
// @return {Any[]} - New array with prepended value.
|
||||
func Unshift(_ context.Context, args ...core.Value) (core.Value, error) {
|
||||
err := core.ValidateArgs(args, 2, 3)
|
||||
|
||||
|
Reference in New Issue
Block a user