mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Port merge command from Nushell (#808)
* Add example test to zip * Port merge command from Nushell On top of the original merge, this one should not collect a stream returned from the merged block and allows merging records.
This commit is contained in:
@ -797,6 +797,15 @@ impl Value {
|
||||
span: Span::test_data(),
|
||||
}
|
||||
}
|
||||
|
||||
// Only use these for test data. Should not be used in user data
|
||||
pub fn test_record(cols: Vec<impl Into<String>>, vals: Vec<Value>) -> Value {
|
||||
Value::Record {
|
||||
cols: cols.into_iter().map(|s| s.into()).collect(),
|
||||
vals,
|
||||
span: Span::test_data(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Value {
|
||||
|
Reference in New Issue
Block a user