Skip to main content

map_sequence

Function map_sequence 

Source
pub fn map_sequence(
    cx: &mut Cx,
    source: Value,
    mapper: Arc<dyn Fn(&mut Cx, Value) -> Result<Value> + Send + Sync + 'static>,
) -> Result<Value>
Expand description

Return a lazy sequence that maps each element of source.

Fails if source is not a sequence.