Discuss Scratch

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
(     )  ::list reporter
So 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

dvargasews wrote:

Here's an idea to add:
What if there was a list ring, like
(     )  ::list reporter
So 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.
Why force people to use the join block when you could just put a text input?
dvargasews
Scratcher
500+ posts

A simple way to add First Class Lists

stickfiregames wrote:

dvargasews wrote:

Here's an idea to add:
What if there was a list ring, like
(     )  ::list reporter
So 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.
Why force people to use the join block when you could just put a text input?
because then, one might as well be putting each list in individually.
BookOwl
Scratcher
1000+ posts

A simple way to add First Class Lists

BookOwl wrote:

BookOwl wrote:

 ____  _   _ __  __ ____  
| __ )| | | | \/ | _ \
| _ \| | | | |\/| | |_) |
| |_) | |_| | | | | __/
|____/ \___/|_| |_|_|
mrbumppo
Scratcher
500+ posts

A simple way to add First Class Lists

Support.
mrbumppo
Scratcher
500+ posts

A simple way to add First Class Lists

Support.
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

Last edited by cookieclickerer33 (Oct. 30, 2023 19:28:07)

cookieclickerer33
Scratcher
1000+ posts

A simple way to add First Class Lists

TheCreatorOfUnTV
Scratcher
1000+ posts

A simple way to add First Class Lists

Rejected as per TOLORS:

Za-Chary wrote:

1.6 2D lists
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
(I can't believe this is still up)

Last edited by TheCreatorOfUnTV (July 23, 2024 19:21:30)

Powered by DjangoBB