list

package
v0.24.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Code generated by Tapestry; edit at your own risk.

Index

Constants

This section is empty.

Variables

View Source
var (
	T = literal.T

	CmdError    = assign.CmdError
	CmdErrorCtx = assign.CmdErrorCtx
)
View Source
var Z_Types = typeinfo.TypeSet{
	Name:       "list",
	Flow:       z_flow_list,
	Signatures: z_signatures,
}

package listing of type data

View Source
var Zt_EraseEdge typeinfo.Flow

erase_edge, a type of flow.

View Source
var Zt_EraseIndex typeinfo.Flow

erase_index, a type of flow.

View Source
var Zt_Erasing typeinfo.Flow

erasing, a type of flow.

View Source
var Zt_ErasingEdge typeinfo.Flow

erasing_edge, a type of flow.

View Source
var Zt_ListEach typeinfo.Flow

list_each, a type of flow.

View Source
var Zt_ListFind typeinfo.Flow

list_find, a type of flow.

View Source
var Zt_ListGather typeinfo.Flow

list_gather, a type of flow.

View Source
var Zt_ListLen typeinfo.Flow

list_len, a type of flow.

View Source
var Zt_ListMap typeinfo.Flow

list_map, a type of flow.

View Source
var Zt_ListPush typeinfo.Flow

list_push, a type of flow.

View Source
var Zt_ListReduce typeinfo.Flow

list_reduce, a type of flow.

View Source
var Zt_ListReverse typeinfo.Flow

list_reverse, a type of flow.

View Source
var Zt_ListSlice typeinfo.Flow

list_slice, a type of flow.

View Source
var Zt_ListSortNumbers typeinfo.Flow

list_sort_numbers, a type of flow.

View Source
var Zt_ListSortText typeinfo.Flow

list_sort_text, a type of flow.

View Source
var Zt_ListSplice typeinfo.Flow

list_splice, a type of flow.

View Source
var Zt_MakeNumList typeinfo.Flow

make_num_list, a type of flow.

View Source
var Zt_MakeRecordList typeinfo.Flow

make_record_list, a type of flow.

View Source
var Zt_MakeTextList typeinfo.Flow

make_text_list, a type of flow.

View Source
var Zt_Range typeinfo.Flow

range, a type of flow.

Functions

func IsAppendable

func IsAppendable(v, els rt.Value) (okay bool)

can v be appended to els? this is similar to IsInsertable, except that v can itself be a list.

func IsInsertable

func IsInsertable(v, els rt.Value) (okay bool)

can v be inserted into els?

Types

type EraseEdge

type EraseEdge struct {
	Target assign.Address
	AtEdge rtti.BoolEval
	Markup map[string]any
}

Erase at edge: Remove one or more values from a list.

func (*EraseEdge) Execute

func (op *EraseEdge) Execute(run rt.Runtime) (err error)

func (*EraseEdge) GetMarkup

func (op *EraseEdge) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*EraseEdge) TypeInfo

func (*EraseEdge) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*EraseIndex) Execute

func (op *EraseIndex) Execute(run rt.Runtime) (err error)

func (*EraseIndex) GetMarkup

func (op *EraseIndex) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*EraseIndex) TypeInfo

func (*EraseIndex) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*Erasing) Execute

func (op *Erasing) Execute(run rt.Runtime) (err error)

func (*Erasing) GetMarkup

func (op *Erasing) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Erasing) TypeInfo

func (*Erasing) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) Execute

func (op *ErasingEdge) Execute(run rt.Runtime) (err error)

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) Repeats

func (op *Erasing_Slice) Repeats() bool

implements typeinfo.Repeats

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.

func (*ListEach) Execute

func (op *ListEach) Execute(run rt.Runtime) (err error)

func (*ListEach) GetMarkup

func (op *ListEach) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListEach) TypeInfo

func (*ListEach) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*ListFind) GetBool

func (op *ListFind) GetBool(run rt.Runtime) (ret rt.Value, err error)

return true if the value exists in the list

func (*ListFind) GetMarkup

func (op *ListFind) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListFind) GetNumber

func (op *ListFind) GetNumber(run rt.Runtime) (ret rt.Value, err error)

returns 1 based index of the value in the list

func (*ListFind) TypeInfo

func (*ListFind) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*ListGather) Execute

func (op *ListGather) Execute(rt.Runtime) (ret rt.Value, err error)

func (*ListGather) GetMarkup

func (op *ListGather) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListGather) TypeInfo

func (*ListGather) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*ListLen) GetMarkup

func (op *ListLen) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListLen) GetNumber

func (op *ListLen) GetNumber(run rt.Runtime) (ret rt.Value, err error)

func (*ListLen) TypeInfo

func (*ListLen) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ListLen_Slice

type ListLen_Slice []ListLen

holds a slice of type list_len

func (*ListLen_Slice) Repeats

func (op *ListLen_Slice) Repeats() bool

implements typeinfo.Repeats

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.

func (*ListMap) Execute

func (op *ListMap) Execute(run rt.Runtime) (err error)

func (*ListMap) GetMarkup

func (op *ListMap) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListMap) TypeInfo

func (*ListMap) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ListMap_Slice

type ListMap_Slice []ListMap

holds a slice of type list_map

func (*ListMap_Slice) Repeats

func (op *ListMap_Slice) Repeats() bool

implements typeinfo.Repeats

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.

func (*ListPush) Execute

func (op *ListPush) Execute(run rt.Runtime) (err error)

func (*ListPush) GetMarkup

func (op *ListPush) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListPush) TypeInfo

func (*ListPush) TypeInfo() typeinfo.T

implements typeinfo.Instance

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:

  1. each element of the list; and,
  2. the value being combined.

And, that pattern is expected to return the newly updated value.

func (*ListReduce) Execute

func (op *ListReduce) Execute(run rt.Runtime) (err error)

func (*ListReduce) GetMarkup

func (op *ListReduce) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListReduce) TypeInfo

func (*ListReduce) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type ListReverse struct {
	Target assign.Address
	Markup map[string]any
}

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) GetMarkup

func (op *ListSlice) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListSlice) GetNumList

func (op *ListSlice) GetNumList(run rt.Runtime) (ret rt.Value, err error)

func (*ListSlice) GetRecordList

func (op *ListSlice) GetRecordList(run rt.Runtime) (ret rt.Value, err error)

func (*ListSlice) GetTextList

func (op *ListSlice) GetTextList(run rt.Runtime) (ret rt.Value, err error)

func (*ListSlice) TypeInfo

func (*ListSlice) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) Execute

func (op *ListSortNumbers) Execute(run rt.Runtime) (err error)

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) Execute

func (op *ListSortText) Execute(run rt.Runtime) (err error)

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) Execute

func (op *ListSplice) Execute(run rt.Runtime) (err error)

func (*ListSplice) GetMarkup

func (op *ListSplice) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ListSplice) GetNumList

func (op *ListSplice) GetNumList(run rt.Runtime) (ret rt.Value, err error)

func (*ListSplice) GetRecordList

func (op *ListSplice) GetRecordList(run rt.Runtime) (ret rt.Value, err error)

func (*ListSplice) GetTextList

func (op *ListSplice) GetTextList(run rt.Runtime) (ret rt.Value, err error)

func (*ListSplice) TypeInfo

func (*ListSplice) TypeInfo() typeinfo.T

implements typeinfo.Instance

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 (op *MakeNumList) GetNumList(run rt.Runtime) (ret rt.Value, err error)

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

type MakeRecordList struct {
	Values []rtti.RecordEval
	Kind   rtti.TextEval
	Markup map[string]any
}

func (*MakeRecordList) GetMarkup

func (op *MakeRecordList) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*MakeRecordList) GetRecordList

func (op *MakeRecordList) GetRecordList(run rt.Runtime) (ret rt.Value, err error)

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

type MakeTextList struct {
	Values []rtti.TextEval
	Markup map[string]any
}

func (*MakeTextList) GetMarkup

func (op *MakeTextList) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*MakeTextList) GetTextList

func (op *MakeTextList) GetTextList(run rt.Runtime) (ret rt.Value, err error)

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.

func (*Range) GetMarkup

func (op *Range) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Range) GetNumList

func (op *Range) GetNumList(run rt.Runtime) (ret rt.Value, err error)

func (*Range) TypeInfo

func (*Range) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Range_Slice

type Range_Slice []Range

holds a slice of type range

func (*Range_Slice) Repeats

func (op *Range_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Range_Slice) TypeInfo

func (*Range_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL