fix
This commit is contained in:
parent
6f2876baf9
commit
52358bf2c1
|
@ -69,7 +69,7 @@ impl Command for Reduce {
|
||||||
Example {
|
Example {
|
||||||
example: r#"[[foo baz] [baz quux]] | reduce --fold "foobar" {|it, acc| $acc | str replace $it.0 $it.1}"#,
|
example: r#"[[foo baz] [baz quux]] | reduce --fold "foobar" {|it, acc| $acc | str replace $it.0 $it.1}"#,
|
||||||
description: "Iteratively perform string replace (from left to right): 'foobar' -> 'bazbar' -> 'quuxbar'",
|
description: "Iteratively perform string replace (from left to right): 'foobar' -> 'bazbar' -> 'quuxbar'",
|
||||||
result: Some(Value::test_int("quuxbar")),
|
result: Some(Value::test_string("quuxbar")),
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
example: r#"[ i o t ] | reduce --fold "Arthur, King of the Britons" {|it, acc| $acc | str replace --all $it "X" }"#,
|
example: r#"[ i o t ] | reduce --fold "Arthur, King of the Britons" {|it, acc| $acc | str replace --all $it "X" }"#,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user