mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-15 01:25:00 +02:00
Rewrite comments, closing #118
This commit is contained in:
@ -2,16 +2,15 @@ package arrays
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values"
|
||||
)
|
||||
|
||||
/*
|
||||
* Returns a value indicating whether an element is contained in array. Optionally returns its position.
|
||||
* @param array (Array) - The source array.
|
||||
* @param value (Read) - The target value.
|
||||
* @param returnIndex (Boolean, optional) - Read which indicates whether to return item's position.
|
||||
*/
|
||||
// Position returns a value indicating whether an element is contained in array. Optionally returns its position.
|
||||
// @param array (Array) - The source array.
|
||||
// @param value (Read) - The target value.
|
||||
// @param returnIndex (Boolean, optional) - Read which indicates whether to return item's position.
|
||||
func Position(_ context.Context, args ...core.Value) (core.Value, error) {
|
||||
err := core.ValidateArgs(args, 2, 3)
|
||||
|
||||
|
Reference in New Issue
Block a user