ListContainsElements |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | <Target> contains <Needle>
|
Associations | com.livecode.list |
Summary | Determines if Target contains Needle as a subsequence.
|
Parameters | Name | Type | Description |
---|
Needle | | Any expression which evaluates to a list.
|
Target | | An expression which evaluates to a list.
|
|
Example | variable tList as List
put [ "a", "b", "c", "d" ] into tList
variable tContains as Boolean
put tList contains element 1 to 2 of tList into tContains
|
Values | Name | Type | Description |
---|
return | | Returns true if Target contains Needle.
|
|
Description | Target contains Needle if and only if the elements of Needle occur as a subsequence of the elements of Target.
Note: Since "" is a subsequence of elements of every list, every list contains the empty list.
|
Tags | lists |