mirror of
https://github.com/google/blockly.git
synced 2026-01-20 07:17:10 +01:00
Updated Lists (markdown)
16
Lists.md
16
Lists.md
@@ -190,6 +190,14 @@ The **make text from list** block joins a list into a single text using a delimi
|
||||
|
||||
In the above example, a new text is returned with the value: "311-555-2368".
|
||||
|
||||
# Reversing a list
|
||||
|
||||
The **reverse** block makes a new list with the same items as the connected list, but in the opposite order. For example, these blocks:
|
||||
|
||||

|
||||
|
||||
Will make the list `flipped` contain "c", "b", and "a" in that order.
|
||||
|
||||
# Related Blocks
|
||||
|
||||
## Printing a list
|
||||
@@ -209,11 +217,3 @@ The [for-each block](Loops#for-each) in the Control category performs an operati
|
||||
This does not remove the items from the original list.
|
||||
|
||||
See also the examples of the [loop termination blocks](Loops#loop-termination-blocks).
|
||||
|
||||
# Reversing a list
|
||||
|
||||
The **reverse** block makes a new list with the same items as the connected list, but in the opposite order. For example, these blocks:
|
||||
|
||||

|
||||
|
||||
Will make the list `flipped` contain "c", "b", and "a" in that order.
|
||||
Reference in New Issue
Block a user