com.livecode.list

Typemodule
DictionaryLCB
LibraryLiveCode Builder
Associationscom.livecode.list
Summary

This library consists of the operations on lists included in the standard library of LiveCode Builder.

Description

This library consists of the operations on lists included in the standard library of LiveCode Builder.

TypeNameSummarySyntax
expressionEmptyList

Designates the list of length zero.

the empty list

iteratorRepeatForEachElementInList

Repeat over the elements of a list

element <Iterand>

modulecom.livecode.list

This library consists of the operations on lists included in the standard library of LiveCode Builder.

element <Iterand>

operatorConcatenateLists

Concatenate two lists. LeftList:The List to go at the start of the resulting list. RightList:The List to go at the end of the resulting list.

<Left> & <Right>

- - -CountElementsOfList

Returns the number of elements in Target

the number of elements in <Target>

- - -ElementIsInList

Determines if a given element is in Target

<Needle> is in <Target>

- - -FirstElementOf

Designates the first element in Target.

the first element of <Target>

- - -HeadOfList

Returns the first element of Target.

the head of <Target>

- - -IndexedElementOfList

Designates the element at index Index in Target. Synonym:SingletonElementOf

<Target> [ <Index> ]

- - -LastElementOf

Designates the last element in Target.

the last element of <Target>

- - -ListBeginsWithList

Determines whether Source begins with Prefix

<Source> begins with <Prefix>

- - -ListContainsElements

Determines if Target contains Needle as a subsequence.

<Target> contains <Needle>

- - -ListEndsWithList

Determines whether Source ends with Suffix Prefix:An expression which evaluates to a list.

<Source> ends with <Suffix>

- - -ListIndex

Find the first or last occurrence of Needle within Haystack Target:An expression which evaluates to a list.

the ( first | last ) index of <Needle> in <Haystack>

- - -ListIndexAfter

Find the first or last occurrence of Needle within the tail of Haystack Target:An expression which evaluates to a list.

the ( first | last ) index of <Needle> after <After> in <Haystack>

- - -ListIndexBefore

Find the first or last occurrence of Needle within the head of Haystack Target:An expression which evaluates to a list.

the ( first | last ) index of <Needle> before <Before> in <Haystack>

- - -ListIsList

Determines whether Left and Right are equal or not.

<Left> is <Right>

- - -ListIsNotList

Determines whether Left and Right are equal or not.

<Left> is not <Right>

- - -ListOffset

Find the first or last occurrence of Needle within Haystack Target:An expression which evaluates to a list.

the ( first | last ) offset of <Needle> in <Haystack>

- - -ListOffsetAfter

Find the first or last occurrence of Needle within the tail of Haystack Target:An expression which evaluates to a list.

the ( first | last ) offset of <Needle> after <After> in <Haystack>

- - -ListOffsetBefore

Find the first or last occurrence of Needle within the head of Haystack Target:An expression which evaluates to a List.

the ( first | last ) offset of <Needle> before <Before> in <Haystack>

- - -RangeElementsOfList

Designates the elements between indices Start and Finish in Target.

element <Start> to <Finish> of <Target>

- - -SingletonElementOfList

Designates the element at index Index in Target.

element <Index> of <Target>

- - -TailOfList

Returns the last element of Target.

the tail of <Target>

statementDeleteFirstElementOf

Deletes the first element of Target.

delete the first element of <Target>

- - -DeleteLastElementOf

Deletes the last element of Target.

delete the last element of <Target>

- - -DeleteRangeElementOf

Deletes the elements between indices Start and Finish in Target.

delete element <Start> to <Finish> of <Target>

- - -DeleteSingletonElementOf

Deletes the element at index Index in Target.

delete element <Index> of <Target>

- - -PopList

Pops the last element from Source into Target Target:An expression which evaluates to a container.

pop ( front of | back of ) <Source>

- - -PushOntoList

Pushes Value onto Target.

push <Value> onto ( front of | back of ) <Target>

- - -ReverseElementsOfList

Reverse a list

reverse <Target>

- - -SpliceAfterElementOfList

Inserts each of the elements of Source into Target after element at index Index.

splice <Source> after element <Index> of <Target>

- - -SpliceBeforeElementOfList

Inserts each of the elements of Source into Target before element at index Index.

splice <Source> before element <Index> of <Target>

- - -SpliceIntoElementOfList

Removes the element of Target at Index and inserts each of the elements of Source into Target at Index.

splice <Source> into element <Index> of <Target>

- - -SpliceIntoRangeOfList

Removes the elements of Target from Start to Finish and inserts each of the elements of Source into Target at Start.

splice <Source> into element <Start> to <Finish> of <Target>