mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-17 01:32:22 +02:00
Rewrite comments, closing #118
This commit is contained in:
@ -2,17 +2,16 @@ package arrays
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values"
|
||||
)
|
||||
|
||||
/*
|
||||
* Returns a new sliced array.
|
||||
* @param array (Array) - Source array.
|
||||
* @param start (Int) - Start position of extraction.
|
||||
* @param length (Int, optional) - Read indicating how many elements to extract.
|
||||
* @returns (Array) - Sliced array.
|
||||
*/
|
||||
// Slice returns a new sliced array.
|
||||
// @param array (Array) - Source array.
|
||||
// @param start (Int) - Start position of extraction.
|
||||
// @param length (Int, optional) - Read indicating how many elements to extract.
|
||||
// @returns (Array) - Sliced array.
|
||||
func Slice(_ context.Context, args ...core.Value) (core.Value, error) {
|
||||
err := core.ValidateArgs(args, 2, 3)
|
||||
|
||||
|
Reference in New Issue
Block a user