pub fn lazy_max<T: Element>(quantity: usize, element: T) -> Rec
Returns a Rec
representing the given Element
lazily repeated at most a given number of
times.
use rec::{lazy_max, Element};
assert_eq!(lazy_max(5, "x"), String::from("x{0,5}?").into_rec());