state:empty
state:<translated
state:>=translated
state:needs-editing
has:suggestion
has:variant
has:screenshot
has:label
has:context
state:<translated AND NOT has:suggestion
has:comment
has:check
state:approved
state:translated
Loading…
New source string
testing_project / Documentation: reference/reference_lua/box_index/min — English
The string uses three dots (...) instead of an ellipsis character (…)
Reset
Additional explanation to clarify meaning or usage of the string.
Additional comma-separated flags to influence Weblate behavior.
read-only is inherited from testing_project/Documentation: reference/reference_lua/box_index/min — English.
read-only
box.space.bands:insert { 1, 'Roxette', 1986 }
box.space.bands:insert { 2, 'Scorpions', 1965 }
box.space.bands:insert { 3, 'Ace of Base', 1987 }
box.space.bands:insert { 4, 'The Beatles', 1960 }
box.space.bands:insert { 5, 'Pink Floyd', 1965 }
box.space.bands:insert { 6, 'The Rolling Stones', 1962 }
box.space.bands:insert { 7, 'The Doors', 1965 }
box.space.bands:insert { 8, 'Nirvana', 1987 }
box.space.bands:insert { 9, 'Led Zeppelin', 1968 }
box.space.bands:insert { 10, 'Queen', 1970 }
-- Find the minimum value in the specified index
min = box.space.bands.index.year:min()
--[[
---
- [4, 'The Beatles', 1960]
...
--]]
-- Find the minimum value that matches the partial key value
min_partial = box.space.bands.index.year_band:min(1965)
--[[
---
- [5, 'Pink Floyd', 1965]
...
--]]