map

Function map 

Source
pub fn map<F>(dataset: &DataSet, mapper: F) -> DataSet
where F: FnMut(&[Value]) -> Vec<Value>,
Expand description

Returns a new DataSet by applying mapper to every row.

This is a convenience wrapper around DataSet::map_rows.

ยงPanics

Panics if mapper returns rows with a different length than the schema field count.