Discuss Scratch

DaEpikDude
Scratcher
1000+ posts

New list functions!

bump I guess

And all the world over, each nation's the same,
They've simply no notion of playing the game.
They argue with umpires, they cheer when they've won,
And they practice beforehand, which ruins the fun!
sathvikrias
Scratcher
500+ posts

New list functions!

1: please delete the (position of in ) block, scratch now has it. (item # of in )
2: support for the others! it would be a lot less laggy than the workaround.

Moving from Scratch? Don't learn C or Java, try Snap!
MDCCCLXVII
Scratcher
1000+ posts

New list functions!

sathvikrias wrote:

1: please delete the (position of [] in [ v]) block, scratch now has it. (item # of [] in [ v])
the2000
Scratcher
1000+ posts

New list functions!

Yeah, I agree with sathvikrias, the workarounds are way too slow as-is. Not to mention that JavaScript already has a built-in sorting function. The only problem is that I don't think sorting is all that useful on a list of plain numbers, and there's no way to do a custom function. Maybe it would work if you made it a C shaped block?

samq64
Scratcher
1000+ posts

New list functions!

Support, for the first one, and Scratch 3 has the second one, though for the first suggestion the blocks should have simpler names like:
sort [list v] in [acending v] oder::list
sort [list v] in [decending v] oder::list

Also it makes more scence to have symbles smaller than numbers witch are smaller than lettters. Examlpe sorting the list Apple, 123, @samq64, 987, Banana in acending orer will give you @samq64, 123, 987, Apple, Banana.
What do you think?
samq64
Scratcher
1000+ posts

New list functions!

Bump

Powered by DjangoBB