Repository navigation
All
Dennis Corvers edited this page Oct 23, 2026
·
1 revision
Determines whether every value in an iterable satisfies a predicate.
matches = values:all(predicate)| Parameter | Type | Description |
|---|---|---|
predicate |
function(value, sourceKey) |
Returns false to indicate a value does not satisfy the condition. |
false if any predicate call returns exactly false; otherwise true.
An empty iterable returns true. The predicate receives the source iterator
key, not a 1-based position.
local squadReady = LuaQ.from({
{ name = "Ada", level = 82 },
{ name = "Bryn", level = 76 },
})
:all(function(player) return player.level >= 70 end)
-- true- Home
- Getting Started
-
Functions
- aggregate
- all
- any
- concat
- contains
- count
- create
- createFrom
- deepCopy
- difference
- elementAt
- elementAtOrDefault
- first
- firstOrDefault
- flatMap
- foreach
- groupBy
- groupByResult
- indexOf
- intersect
- ipairs
- last
- lastOrDefault
- map
- max
- min
- pairs
- sequenceEquals
- single
- singleOrDefault
- sort
- sortBy
- sortByDescending
- sortDescending
- sum
- take
- takeWhile
- thenBy
- thenByDecending
- toLookup
- toMap
- toSet
- toTable
- union
- unique
- where
- zip
- Aliases