Return type | Name and parameters |
---|---|
List
|
getAt(EmptyRange range)
Support the range subscript operator for an eager or lazy List. |
List
|
getAt(Range range)
Support the range subscript operator for an eager or lazy List. |
List
|
getAt(Collection indices)
Select a List of items from an eager or lazy List using a Collection to identify the indices to be selected. |
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
addAll
, asImmutable
, asSynchronized
, asUnmodifiable
, bufferedIterator
, drop
, dropRight
, dropWhile
, each
, eachWithIndex
, equals
, equals
, execute
, execute
, execute
, findAll
, findAll
, first
, flatten
, getAt
, getAt
, getAt
, getAt
, getAt
, grep
, grep
, head
, init
, intersect
, intersect
, last
, leftShift
, minus
, minus
, minus
, multiply
, plus
, plus
, plus
, plus
, plus
, plus
, pop
, push
, putAt
, putAt
, putAt
, putAt
, putAt
, putAt
, putAt
, putAt
, removeAt
, removeLast
, reverse
, reverse
, reverseEach
, split
, subsequences
, swap
, tail
, take
, takeRight
, takeWhile
, toSpreadMap
, toUnique
, toUnique
, toUnique
, transpose
, unique
, unique
, unique
, unique
, unique
, unique
, withDefault
, withEagerDefault
, withLazyDefault
addAll
, addAll
, addAll
, asBoolean
, asImmutable
, asSynchronized
, asType
, asUnmodifiable
, collectNested
, each
, eachWithIndex
, find
, find
, findAll
, findAll
, flatten
, getAt
, getIndices
, grep
, grep
, inject
, inject
, intersect
, intersect
, isCase
, leftShift
, minus
, plus
, plus
, plus
, removeAll
, removeAll
, removeElement
, retainAll
, retainAll
, split
, toListString
, toListString
, toSet
, unique
, unique
, unique
, unique
, unique
, unique
any
, asCollection
, asList
, asType
, bufferedIterator
, chop
, collate
, collate
, collate
, collate
, collect
, collect
, collect
, collectEntries
, collectEntries
, collectEntries
, collectEntries
, collectMany
, collectMany
, collectNested
, collectNested
, combinations
, combinations
, contains
, containsAll
, count
, count
, countBy
, disjoint
, drop
, dropRight
, dropWhile
, each
, eachCombination
, eachPermutation
, eachWithIndex
, every
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, findResults
, first
, flatten
, flatten
, getAt
, groupBy
, groupBy
, groupBy
, head
, indexed
, indexed
, init
, inits
, intersect
, intersect
, isEmpty
, join
, last
, max
, max
, max
, min
, min
, min
, minus
, minus
, multiply
, permutations
, permutations
, plus
, plus
, size
, sort
, sort
, sort
, sort
, sort
, sum
, sum
, sum
, sum
, tail
, tails
, take
, takeRight
, takeWhile
, toList
, toSet
, toSorted
, toSorted
, toSorted
, toSpreadMap
, toUnique
, toUnique
, toUnique
, withIndex
, withIndex
Support the range subscript operator for an eager or lazy List.
def list = [true, 1, 3.4].withDefault{ 42 }
assert list[0..<0] == []
range
- a Range indicating the items to getSupport the range subscript operator for an eager or lazy List.
def list = [].withDefault { 42 } assert list[1..2] == [null, 42]
range
- a Range indicating the items to getSelect a List of items from an eager or lazy List using a Collection to identify the indices to be selected.
def list = [].withDefault { 42 } assert list[1,0,2] == [42, 42, 42]
indices
- a Collection of indices