Discuss Scratch

nothrethianbutbad
Scratcher
4 posts

Operators+ extension

There should be an extension adding new operators.
Here are the operators that come with the extension.
((0) ↑ (0)::operators)
If it showed 4↑2 it would report 16 because 4↑2=16. Exponentation.


(remove all instances of [a] in [apples are fruits]::operators)
If the reporter was in this state it would return pples re fruits because it removes all of (a). If you were to put in (a, e) in the first thing, it would remove (a) and (e) silly enough if you put in (a, e, s) you get “ppl r fruit”


(amount of [a] in [banana]::operators)
If the reporter was in this state, it would return 3 because there are 3 instances of “ a” in banana.


(amount of [vowels v] in [tangerine]::operators)
If the reporter was in this state, it would return 4 because there are 4 instances of vowels in “tangerine”.


(amount of [consonants v] in [tangerine]::operators)
Same as the last one, but uses consonants. Therefore, it returns 5 because….well, you get it.


(round (2) to (3)::operators)
It would return 3 because 2 is closest to 3.


(change [c] to [y] in [coconut]::operators)
Pretty simple. C gets changed to y so it reports “yoyonut”
Let me know what you think about this!
DragonBeast829
Scratcher
95 posts

Operators+ extension

This should probably be in Suggestions, this category is for the development and implementation of extensions.

Also, for some feedback: these blocks would probably be better off as being implemented yourself as functions, but Scratch doesn't have those yet. Here's to hoping 4.0 adds functions!

Powered by DjangoBB