[][src]Function rec::lazy_some

pub fn lazy_some<T: Element>(element: T) -> Rec

Returns a Rec representing the given Element lazily repeated 1 or more times.

Examples

use rec::{lazy_some, Element};

assert_eq!(lazy_some("x"), String::from("x+?").into_rec());