[][src]Function rec::some

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

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

Examples

use rec::{some, Element};

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