mirror of
https://github.com/nushell/nushell.git
synced 2025-04-26 06:08:21 +02:00
parent
872f6166e1
commit
0886afe650
@ -48,17 +48,8 @@ impl WholeStreamCommand for ForIn {
|
|||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Echo the square of each integer",
|
description: "Work with elements of a range",
|
||||||
example: "for x in 1..3 { $x }",
|
example: "for $x in 1..3 { $x }",
|
||||||
result: Some(vec![
|
|
||||||
UntaggedValue::int(1).into(),
|
|
||||||
UntaggedValue::int(2).into(),
|
|
||||||
UntaggedValue::int(3).into(),
|
|
||||||
]),
|
|
||||||
},
|
|
||||||
Example {
|
|
||||||
description: "Echo the square of each integer",
|
|
||||||
example: "for x in 1..3 { $x }",
|
|
||||||
result: Some(vec![
|
result: Some(vec![
|
||||||
UntaggedValue::int(1).into(),
|
UntaggedValue::int(1).into(),
|
||||||
UntaggedValue::int(2).into(),
|
UntaggedValue::int(2).into(),
|
||||||
|
Loading…
Reference in New Issue
Block a user