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