MCPcopy Create free account
hub / github.com/araddon/qlbridge / ArraySlice

Struct ArraySlice

expr/builtins/list_map.go:117–117  ·  view source on GitHub ↗

array.slice slice element m -> n of a slice. First arg must be a slice. given context of "items" = [1,2,3,4,5] array.slice(items, 1, 3) => [2,3], true array.slice(items, 2) => [3,4,5], true array.slice(items, -2) => [4,5], true

Source from the content-addressed store, hash-verified

115// array.slice(items, 2) => [3,4,5], true
116// array.slice(items, -2) => [4,5], true
117type ArraySlice struct{}
118
119// Type Unknown for Array Slice
120func (m *ArraySlice) Type() value.ValueType { return value.UnknownType }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected