[][src]Function rec::lazy_max

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.

Examples

use rec::{lazy_max, Element};

assert_eq!(lazy_max(5, "x"), String::from("x{0,5}?").into_rec());