Discuss Scratch
- Discussion Forums
- » Suggestions
- » A simple way to add First Class Lists
- dvargasews
-
Scratcher
500+ posts
A simple way to add First Class Lists
Here's an idea to add:
What if there was a list ring, like
What if there was a list ring, like
( ) ::list reporterSo if you had a bunch of lists with similar names, you could use
((join [first part] [second part])::list reporter)instead of having to program each individually.
Last edited by dvargasews (Feb. 27, 2017 15:12:24)
- stickfiregames
-
Scratcher
1000+ posts
A simple way to add First Class Lists
Here's an idea to add:Why force people to use the join block when you could just put a text input?
What if there was a list ring, like( ) ::list reporterSo if you had a bunch of lists with similar names, you could use((join [first part] [second part])::list reporter)instead of having to program each individually.
- dvargasews
-
Scratcher
500+ posts
A simple way to add First Class Lists
because then, one might as well be putting each list in individually.Here's an idea to add:Why force people to use the join block when you could just put a text input?
What if there was a list ring, like( ) ::list reporterSo if you had a bunch of lists with similar names, you could use((join [first part] [second part])::list reporter)instead of having to program each individually.
- BookOwl
-
Scratcher
1000+ posts
A simple way to add First Class Lists
____ _ _ __ __ ____
| __ )| | | | \/ | _ \
| _ \| | | | |\/| | |_) |
| |_) | |_| | | | | __/
|____/ \___/|_| |_|_|
- smolshoob
-
Scratcher
45 posts
A simple way to add First Class Lists
I support! This could make advanced inventory systems really easy, and they have so many more uses



- Bowser_cultist
-
Scratcher
14 posts
A simple way to add First Class Lists
Definitely add this, I have been trying to make a thing that can check every list until an item 2(or other #) of a list matches an input.
- cookieclickerer33
-
Scratcher
1000+ posts
A simple way to add First Class Lists
i made a custom extension that does this using newline and id love to share it!!!!!!!!!!
im not sure how to do that however
im not sure how to do that however
Last edited by cookieclickerer33 (Oct. 30, 2023 19:28:07)
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
A simple way to add First Class Lists
Rejected as per TOLORS:
1.6 2D lists(I can't believe this is still up)
2D lists, also known as 2D arrays, nested lists, or matrices, are a type of data structure that allows you to put an entire list as an element of another list; that is, it allows you to put lists inside of lists. These sorts of data structures are used widely in other programming languages and functions similarly to a table.
This block, and others, would allow you to create 2D lists to store information. However, this is too complicated for what is supposed to be an introductory programming language. There are workarounds possible by using an ordinary list and an indexing function. For those who are interested, it may be worth checking out Snap!. It is a block-based programming language designed for experienced programmers and has more advanced data structures than Scratch does.add [] to sublist () of [list v] :: list
Last edited by TheCreatorOfUnTV (July 23, 2024 19:21:30)
- Discussion Forums
- » Suggestions
-
» A simple way to add First Class Lists







