mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Add from csv and from tsv (#320)
This commit is contained in:
@ -20,12 +20,9 @@ pub struct ValueStream {
|
||||
|
||||
impl ValueStream {
|
||||
pub fn into_string(self, separator: &str) -> String {
|
||||
format!(
|
||||
"[{}]",
|
||||
self.map(|x: Value| x.into_string(", "))
|
||||
.collect::<Vec<String>>()
|
||||
.join(separator)
|
||||
)
|
||||
self.map(|x: Value| x.into_string(", "))
|
||||
.collect::<Vec<String>>()
|
||||
.join(separator)
|
||||
}
|
||||
|
||||
pub fn from_stream(
|
||||
|
Reference in New Issue
Block a user