Documentation ¶
Overview ¶
Code generated by Tapestry; edit at your own risk.
Index ¶
- Variables
- func IsAppendable(v, els rt.Value) (okay bool)
- func IsInsertable(v, els rt.Value) (okay bool)
- type EraseEdge
- type EraseEdge_Slice
- type EraseIndex
- type EraseIndex_Slice
- type Erasing
- type ErasingEdge
- type ErasingEdge_Slice
- type Erasing_Slice
- type ListEach
- type ListEach_Slice
- type ListFind
- type ListFind_Slice
- type ListGather
- type ListGather_Slice
- type ListLen
- type ListLen_Slice
- type ListMap
- type ListMap_Slice
- type ListPush
- type ListPush_Slice
- type ListReduce
- type ListReduce_Slice
- type ListReverse
- type ListReverse_Slice
- type ListSlice
- func (op *ListSlice) GetMarkup(ensure bool) map[string]any
- func (op *ListSlice) GetNumList(run rt.Runtime) (ret rt.Value, err error)
- func (op *ListSlice) GetRecordList(run rt.Runtime) (ret rt.Value, err error)
- func (op *ListSlice) GetTextList(run rt.Runtime) (ret rt.Value, err error)
- func (*ListSlice) TypeInfo() typeinfo.T
- type ListSlice_Slice
- type ListSortNumbers
- type ListSortNumbers_Slice
- type ListSortText
- type ListSortText_Slice
- type ListSplice
- func (op *ListSplice) Execute(run rt.Runtime) (err error)
- func (op *ListSplice) GetMarkup(ensure bool) map[string]any
- func (op *ListSplice) GetNumList(run rt.Runtime) (ret rt.Value, err error)
- func (op *ListSplice) GetRecordList(run rt.Runtime) (ret rt.Value, err error)
- func (op *ListSplice) GetTextList(run rt.Runtime) (ret rt.Value, err error)
- func (*ListSplice) TypeInfo() typeinfo.T
- type ListSplice_Slice
- type MakeNumList
- type MakeNumList_Slice
- type MakeRecordList
- type MakeRecordList_Slice
- type MakeTextList
- type MakeTextList_Slice
- type Range
- type Range_Slice
Constants ¶
This section is empty.
Variables ¶
var ( T = literal.T CmdError = assign.CmdError CmdErrorCtx = assign.CmdErrorCtx )
var Z_Types = typeinfo.TypeSet{
Name: "list",
Flow: z_flow_list,
Signatures: z_signatures,
}
package listing of type data
var Zt_EraseEdge typeinfo.Flow
erase_edge, a type of flow.
var Zt_EraseIndex typeinfo.Flow
erase_index, a type of flow.
var Zt_Erasing typeinfo.Flow
erasing, a type of flow.
var Zt_ErasingEdge typeinfo.Flow
erasing_edge, a type of flow.
var Zt_ListEach typeinfo.Flow
list_each, a type of flow.
var Zt_ListFind typeinfo.Flow
list_find, a type of flow.
var Zt_ListGather typeinfo.Flow
list_gather, a type of flow.
var Zt_ListLen typeinfo.Flow
list_len, a type of flow.
var Zt_ListMap typeinfo.Flow
list_map, a type of flow.
var Zt_ListPush typeinfo.Flow
list_push, a type of flow.
var Zt_ListReduce typeinfo.Flow
list_reduce, a type of flow.
var Zt_ListReverse typeinfo.Flow
list_reverse, a type of flow.
var Zt_ListSlice typeinfo.Flow
list_slice, a type of flow.
var Zt_ListSortNumbers typeinfo.Flow
list_sort_numbers, a type of flow.
var Zt_ListSortText typeinfo.Flow
list_sort_text, a type of flow.
var Zt_ListSplice typeinfo.Flow
list_splice, a type of flow.
var Zt_MakeNumList typeinfo.Flow
make_num_list, a type of flow.
var Zt_MakeRecordList typeinfo.Flow
make_record_list, a type of flow.
var Zt_MakeTextList typeinfo.Flow
make_text_list, a type of flow.
var Zt_Range typeinfo.Flow
range, a type of flow.
Functions ¶
func IsAppendable ¶
can v be appended to els? this is similar to IsInsertable, except that v can itself be a list.
Types ¶
type EraseEdge ¶
Erase at edge: Remove one or more values from a list.
type EraseEdge_Slice ¶
type EraseEdge_Slice []EraseEdge
holds a slice of type erase_edge
func (*EraseEdge_Slice) Repeats ¶
func (op *EraseEdge_Slice) Repeats() bool
implements typeinfo.Repeats
func (*EraseEdge_Slice) TypeInfo ¶
func (*EraseEdge_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type EraseIndex ¶
type EraseIndex struct { Count rtti.NumberEval Target assign.Address AtIndex rtti.NumberEval Markup map[string]any }
Erase at index: Remove one or more values from a list.
type EraseIndex_Slice ¶
type EraseIndex_Slice []EraseIndex
holds a slice of type erase_index
func (*EraseIndex_Slice) Repeats ¶
func (op *EraseIndex_Slice) Repeats() bool
implements typeinfo.Repeats
func (*EraseIndex_Slice) TypeInfo ¶
func (*EraseIndex_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Erasing ¶
type Erasing struct { Count rtti.NumberEval Target assign.Address AtIndex rtti.NumberEval As string Exe []rtti.Execute Markup map[string]any }
Erase elements from the front or back of a list. Runs a pattern with a list containing the erased values. If nothing was erased, the pattern will be called with an empty list.
type ErasingEdge ¶
type ErasingEdge struct { Target assign.Address AtEdge rtti.BoolEval As string Exe []rtti.Execute Else core.Brancher Markup map[string]any }
Erase one element from the front or back of a list. Runs an activity with a list containing the erased values; the list can be empty if nothing was erased.
func (*ErasingEdge) GetMarkup ¶
func (op *ErasingEdge) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ErasingEdge) TypeInfo ¶
func (*ErasingEdge) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ErasingEdge_Slice ¶
type ErasingEdge_Slice []ErasingEdge
holds a slice of type erasing_edge
func (*ErasingEdge_Slice) Repeats ¶
func (op *ErasingEdge_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ErasingEdge_Slice) TypeInfo ¶
func (*ErasingEdge_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Erasing_Slice ¶
type Erasing_Slice []Erasing
holds a slice of type erasing
func (*Erasing_Slice) TypeInfo ¶
func (*Erasing_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListEach ¶
type ListEach struct { List rtti.Assignment As string Exe []rtti.Execute Else core.Brancher Markup map[string]any }
Loops over the elements in the passed list, or runs the 'else' activity if empty.
type ListEach_Slice ¶
type ListEach_Slice []ListEach
holds a slice of type list_each
func (*ListEach_Slice) Repeats ¶
func (op *ListEach_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListEach_Slice) TypeInfo ¶
func (*ListEach_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListFind ¶
type ListFind struct { Value rtti.Assignment List rtti.Assignment Markup map[string]any }
Search a list for a specific value.
type ListFind_Slice ¶
type ListFind_Slice []ListFind
holds a slice of type list_find
func (*ListFind_Slice) Repeats ¶
func (op *ListFind_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListFind_Slice) TypeInfo ¶
func (*ListFind_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListGather ¶
type ListGather struct { Target assign.Address From rtti.Assignment Using string Markup map[string]any }
Transform the values from a list. The named pattern gets with with two parameters for each value in the list: 'in' as each value from the list, and 'out' as the var passed to the gather.
type ListGather_Slice ¶
type ListGather_Slice []ListGather
holds a slice of type list_gather
func (*ListGather_Slice) Repeats ¶
func (op *ListGather_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListGather_Slice) TypeInfo ¶
func (*ListGather_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListLen ¶
type ListLen struct { List rtti.Assignment Markup map[string]any }
Determines the number of values in a list.
type ListLen_Slice ¶
type ListLen_Slice []ListLen
holds a slice of type list_len
func (*ListLen_Slice) TypeInfo ¶
func (*ListLen_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListMap ¶
type ListMap struct { Target assign.Address List rtti.Assignment PatternName string Markup map[string]any }
Transform the values from one list and place the results in another list. The designated pattern is called with each value from the 'from list', one value at a time.
type ListMap_Slice ¶
type ListMap_Slice []ListMap
holds a slice of type list_map
func (*ListMap_Slice) TypeInfo ¶
func (*ListMap_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListPush ¶
type ListPush struct { Value rtti.Assignment Target assign.Address AtEdge rtti.BoolEval Markup map[string]any }
Add a value to a list.
type ListPush_Slice ¶
type ListPush_Slice []ListPush
holds a slice of type list_push
func (*ListPush_Slice) Repeats ¶
func (op *ListPush_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListPush_Slice) TypeInfo ¶
func (*ListPush_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListReduce ¶
type ListReduce struct { Target assign.Address List rtti.Assignment PatternName string Markup map[string]any }
Combine all of the values in a list into a single value. The designated pattern is called with two parameters:
- each element of the list; and,
- the value being combined.
And, that pattern is expected to return the newly updated value.
type ListReduce_Slice ¶
type ListReduce_Slice []ListReduce
holds a slice of type list_reduce
func (*ListReduce_Slice) Repeats ¶
func (op *ListReduce_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListReduce_Slice) TypeInfo ¶
func (*ListReduce_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListReverse ¶
Reverse a list.
func (*ListReverse) Execute ¶
func (op *ListReverse) Execute(run rt.Runtime) (err error)
A normal reduce would return a value, instead we accumulate into a variable
func (*ListReverse) GetMarkup ¶
func (op *ListReverse) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ListReverse) TypeInfo ¶
func (*ListReverse) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListReverse_Slice ¶
type ListReverse_Slice []ListReverse
holds a slice of type list_reverse
func (*ListReverse_Slice) Repeats ¶
func (op *ListReverse_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListReverse_Slice) TypeInfo ¶
func (*ListReverse_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListSlice ¶
type ListSlice struct { List rtti.Assignment Start rtti.NumberEval End rtti.NumberEval Markup map[string]any }
Create a new list from a section of another list. Start is optional, if omitted slice starts at the first element. If start is greater the length, an empty array is returned. Slice doesnt include the ending index. Negatives indices indicates an offset from the end. When end is omitted, copy up to and including the last element; and do the same if the end is greater than the length
func (*ListSlice) GetNumList ¶
func (*ListSlice) GetRecordList ¶
func (*ListSlice) GetTextList ¶
type ListSlice_Slice ¶
type ListSlice_Slice []ListSlice
holds a slice of type list_slice
func (*ListSlice_Slice) Repeats ¶
func (op *ListSlice_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListSlice_Slice) TypeInfo ¶
func (*ListSlice_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListSortNumbers ¶
type ListSortNumbers struct { Target assign.Address ByField string Descending rtti.BoolEval Markup map[string]any }
func (*ListSortNumbers) GetMarkup ¶
func (op *ListSortNumbers) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ListSortNumbers) TypeInfo ¶
func (*ListSortNumbers) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListSortNumbers_Slice ¶
type ListSortNumbers_Slice []ListSortNumbers
holds a slice of type list_sort_numbers
func (*ListSortNumbers_Slice) Repeats ¶
func (op *ListSortNumbers_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListSortNumbers_Slice) TypeInfo ¶
func (*ListSortNumbers_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListSortText ¶
type ListSortText struct { Target assign.Address ByField string Descending rtti.BoolEval UsingCase rtti.BoolEval Markup map[string]any }
Rearrange the elements in the named list by using the designated pattern to test pairs of elements.
func (*ListSortText) GetMarkup ¶
func (op *ListSortText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ListSortText) TypeInfo ¶
func (*ListSortText) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListSortText_Slice ¶
type ListSortText_Slice []ListSortText
holds a slice of type list_sort_text
func (*ListSortText_Slice) Repeats ¶
func (op *ListSortText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListSortText_Slice) TypeInfo ¶
func (*ListSortText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ListSplice ¶
type ListSplice struct { Target assign.Address Start rtti.NumberEval Remove rtti.NumberEval Insert rtti.Assignment Markup map[string]any }
Modify a list by adding and removing elements. The type of the elements being added must match the type of the list. Text cant be added to a list of numbers, numbers cant be added to a list of text. If the starting index is negative, this begins that many elements from the end of the array; if list's length plus the start is less than zero, this begins from index zero. If the remove count is missing, this removes all elements from the start to the end; if the remove count is zero or negative, no elements are removed.
func (*ListSplice) GetMarkup ¶
func (op *ListSplice) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ListSplice) GetNumList ¶
func (*ListSplice) GetRecordList ¶
func (*ListSplice) GetTextList ¶
type ListSplice_Slice ¶
type ListSplice_Slice []ListSplice
holds a slice of type list_splice
func (*ListSplice_Slice) Repeats ¶
func (op *ListSplice_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ListSplice_Slice) TypeInfo ¶
func (*ListSplice_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeNumList ¶
type MakeNumList struct { Values []rtti.NumberEval Markup map[string]any }
func (*MakeNumList) GetMarkup ¶
func (op *MakeNumList) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeNumList) GetNumList ¶
func (*MakeNumList) TypeInfo ¶
func (*MakeNumList) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeNumList_Slice ¶
type MakeNumList_Slice []MakeNumList
holds a slice of type make_num_list
func (*MakeNumList_Slice) Repeats ¶
func (op *MakeNumList_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeNumList_Slice) TypeInfo ¶
func (*MakeNumList_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeRecordList ¶
func (*MakeRecordList) GetMarkup ¶
func (op *MakeRecordList) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeRecordList) GetRecordList ¶
func (*MakeRecordList) TypeInfo ¶
func (*MakeRecordList) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeRecordList_Slice ¶
type MakeRecordList_Slice []MakeRecordList
holds a slice of type make_record_list
func (*MakeRecordList_Slice) Repeats ¶
func (op *MakeRecordList_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeRecordList_Slice) TypeInfo ¶
func (*MakeRecordList_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeTextList ¶
func (*MakeTextList) GetMarkup ¶
func (op *MakeTextList) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeTextList) GetTextList ¶
func (*MakeTextList) TypeInfo ¶
func (*MakeTextList) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeTextList_Slice ¶
type MakeTextList_Slice []MakeTextList
holds a slice of type make_text_list
func (*MakeTextList_Slice) Repeats ¶
func (op *MakeTextList_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeTextList_Slice) TypeInfo ¶
func (*MakeTextList_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Range ¶
type Range struct { To rtti.NumberEval From rtti.NumberEval ByStep rtti.NumberEval Markup map[string]any }
Generates a series of numbers r[i] = (start + step*i) where i>=0. Start and step default to 1, stop defaults to start; the inputs are truncated to produce whole numbers; a zero step returns an error. A positive step ends the series when the returned value would exceed stop while a negative step ends before generating a value less than stop.
type Range_Slice ¶
type Range_Slice []Range
holds a slice of type range
func (*Range_Slice) TypeInfo ¶
func (*Range_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance