Discuss Scratch

H_Dur
Scratcher
100+ posts

change list block

instead of
(length of [ v] :: list)

It should be
(number of [ v] in list :: list)

Check my projects!
Reev0102
Scratcher
1000+ posts

change list block

Why? length of [list] is fine.

Last edited by Reev0102 (Sept. 27, 2021 15:57:56)

Quantum-Cat
Scratcher
1000+ posts

change list block

I don't get what you mean by (number of [ v] in list) - what does ‘number’ refer to here and how would it know which list? Do you mean this:

(number of rows in [list v] :: list)

Last edited by Quantum-Cat (Sept. 27, 2021 19:52:04)


Notice: Everything below the solid grey line (↑↑) above is my signature and appears on every post I make. Here, it is okay for you to advertise
your projects and other creations. To create your own, scroll to the bottom of the Discussion Home page and select “change your signature”.

I aplogise if I seem a bit too serious on the forums, but I am always open to feedback on my profile.
Past PPTBF Curator || Forum Helper (TFH) || Some Python, HTML and C

————————————————————————————

————————————————————————————
Quantum-Cat
dertermenter
Scratcher
1000+ posts

change list block

If you mean rewording this block, I wouldn’t mind this. It does make the block a little more clearer, which is good, especially since lists are quite complex to new users


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
KangaCoder
Scratcher
1000+ posts

change list block

This would help clarify things for new users.

don't feed the trolls. feed yourself pizza cupcakez .[1] [2] [3] [4]









KangaCoder • [he/him] • kæŋɡəˈ koʊdər

Random Fun Facts: Male, Christian, US resident, EST time zone, Ravenclaw, likes Math and Science, learning German, knows HTML, Python and Java, loves chocolate, favorite color, possibly a kangaroo
On the Main Site: Experienced Wikian, Camp Counselor, SWC Reviewer, SDS Helper, Forum Helper
On the Forums: 2.65K+ forum posts
Project Ideas Directory 6.0 - need a project idea? Check it out!
Check out some weird and cool Scratch pages!
medians
Scratcher
1000+ posts

change list block

Quantum-Cat wrote:

I don't get what you mean by (number of [ v] in list) - what does ‘number’ refer to here and how would it know which list? Do you mean this:

(number of rows in [list v] :: list)
i think it could be:
(number of [rows v] in [list v] ::list)
(number of [strings v] in [list v] ::list)
(number of [integers v] in [list v] ::list)
(number of [decimals v] in [list v] ::list)
(number of [floats v] in [list v] ::list)
(number of [naturals v] in [list v] ::list)
etc

dertermenter wrote:

Quantum-Cat wrote:

I don't get what you mean by (number of [ v] in list) - what does ‘number’ refer to here and how would it know which list? Do you mean this:

(number of rows in [list v] :: list)
That is better worded, or maybe it could be “items” instead of “row”.
k then:
(number of [nums v] of [list v] ::list)
oh and btw the number of numbers would be like:
if the list had
this:
3
4
thing
item
then it would return 2
if it had this:
thing
item
fruit
carrots
then it would return 0

Last edited by medians (Oct. 4, 2021 15:35:59)


:D: 2.0 is 11 years old https://scratch.mit.edu/projects/1018259409/
Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
dertermenter
Scratcher
1000+ posts

change list block

Quantum-Cat wrote:

I don't get what you mean by (number of [ v] in list) - what does ‘number’ refer to here and how would it know which list? Do you mean this:

(number of rows in [list v] :: list)
That is better worded, or maybe it could be “items” instead of “row”.


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
H_Dur
Scratcher
100+ posts

change list block

when green flag clicked
play sound [bump v]

Check my projects!
Virus6120
Scratcher
100+ posts

change list block

medians wrote:

Quantum-Cat wrote:

I don't get what you mean by (number of [ v] in list) - what does ‘number’ refer to here and how would it know which list? Do you mean this:

(number of rows in [list v] :: list)
i think it could be:
(number of [rows v] in [list v] ::list)
(number of [strings v] in [list v] ::list)
(number of [integers v] in [list v] ::list)
(number of [decimals v] in [list v] ::list)
(number of [floats v] in [list v] ::list)
(number of [naturals v] in [list v] ::list)
etc

dertermenter wrote:

Quantum-Cat wrote:

I don't get what you mean by (number of [ v] in list) - what does ‘number’ refer to here and how would it know which list? Do you mean this:

(number of rows in [list v] :: list)
That is better worded, or maybe it could be “items” instead of “row”.
k then:
(number of [nums v] of [list v] ::list)
oh and btw the number of numbers would be like:
if the list had
this:
3
4
thing
item
then it would return 2
if it had this:
thing
item
fruit
carrots
then it would return 0
Thing is – we don't even have type detection for variables at all… Adding these blocks specifically for lists would just be plain inconsistent.

Welcoming all contributors, explorers, and kumquats

Heya there, I'm currently doing some renovations to my signature, but you're welcome to stay if you like.
han614698
Scratcher
1000+ posts

change list block

FYI medians -

I’m fairly advanced at math and I don’t know what the heck “floats” are.

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




kccuber
Scratcher
1000+ posts

change list block

han614698 wrote:

I’m fairly advanced at math and I don’t know what the heck “floats” are.
floating points. I'm not that advanced but I know what that is.


Made using Nord Theme & Inkscape
bluedragon8633
Scratcher
1000+ posts

change list block

han614698 wrote:

FYI medians -

I’m fairly advanced at math and I don’t know what the heck “floats” are.
Basically a type of number variable that stores decimals. They can also be considered to just be rational numbers.

I do support changing the name- when I first started scratch, it took a while before I got these blocks straight:
(length of (list :: list))
(length of [list v])
(length of [])
I thought “number of rows” or “number of items” sounded the best.

Game with No Sprites: https://scratch.mit.edu/projects/710922832/
Riddle School 5- Tile Puzzle 1: https://scratch.mit.edu/projects/625744508/
RIP Adobe Flash Player

Yokan is coming.
1492864
Scratcher
500+ posts

change list block

bluedragon8633 wrote:

I do support changing the name- when I first started scratch, it took a while before I got these blocks straight:
(length of (list :: list))
(length of [list v])
(length of [])
I thought “number of rows” or “number of items” sounded the best.
I made a suggestion doing exact same thing (in bold): https://scratch.mit.edu/discuss/topic/495203/

Last edited by 1492864 (Oct. 4, 2021 22:31:33)


Scratcheth f'rum us'r | 1 year on Scratcheth | 750+ posts| Inching to 1000 posts, 1 posteth at a timeth
Mine own most did view projecteth | Mine own most did love and fav'd projecteth | Latest projecteth |

Highlight h're and shift+down to readeth the rest.
The most did suggest suggestion:
Dark mode
H_Dur
Scratcher
100+ posts

change list block

bbbbbuuuummmmpppppp

Check my projects!
bluedragon8633
Scratcher
1000+ posts

change list block

1492864 wrote:

I made a suggestion doing exact same thing (in bold): https://scratch.mit.edu/discuss/topic/495203/
Got it, reporting this thread to be closed.

Game with No Sprites: https://scratch.mit.edu/projects/710922832/
Riddle School 5- Tile Puzzle 1: https://scratch.mit.edu/projects/625744508/
RIP Adobe Flash Player

Yokan is coming.
han614698
Scratcher
1000+ posts

change list block

bluedragon8633 wrote:

han614698 wrote:

FYI medians -

I’m fairly advanced at math and I don’t know what the heck “floats” are.
Basically a type of number variable that stores decimals. They can also be considered to just be rational numbers.

I do support changing the name- when I first started scratch, it took a while before I got these blocks straight:
Ah-
We learn them as rational numbers.

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




Paddle2See
Scratch Team
1000+ posts

change list block

1492864 wrote:

bluedragon8633 wrote:

I do support changing the name- when I first started scratch, it took a while before I got these blocks straight:
(length of (list :: list))
(length of [list v])
(length of [])
I thought “number of rows” or “number of items” sounded the best.
I made a suggestion doing exact same thing (in bold): https://scratch.mit.edu/discuss/topic/495203/
Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place.

Please use the existing topic in the link above.

Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)



;

Powered by DjangoBB