Skip to main content

limit

Function limit 

Source
pub fn limit(items: Vec<Value>, max: usize) -> Vec<Value>
Expand description

Truncates the list to at most max elements. 0 means “no cap”.