MultiBoolean Library

Hello! Made 2 custom blocks that could be helpful in some situations


image image
Trying to make actually useful blocks. So, what do you all think? Please rate from 0 to 5. Also, anyone can use these if they want to. As my last custom block, i feel like they should be in the Snap! Coding library

Thanks

for what?

Did you rate a 4?

yes

rate 4

Variadic list is nteresting, but it seems to me more Snap!py to just input a list of Booleans. Implement using a loop with the first/rest of paradigm and shortcutting once the answer is known.

You could add blocks like that to your project, they would go well together.

Sorry if this is bad news, but we have
untitled script pic (4) untitled script pic (3)
in the "Variadic reporters" library. They guarantee left to right and short-circuit when they get an answer that settles the entire question.

They don't have your feature of all-true vs. all-false, but of course all-false is the same as not (any-true).

As for list vs. variadic input, as always, if you have a list whose items you want to use as the inputs in a variadic input slot, drop the list on the left-right arrowheads (when you see a red halo) and it'll be as if you opened up as many input slots as needed for the items of your list.

can't you just use AND and OR or is there something I don't understand?

P.S: a funny thing happened when I wrote this post, I literally said and and or or

can't you just use AND and OR or is there

Sure, but if you have, say, five conditions to check, you end up with


which is a pain in the neck to build, and sort of makes the first one look the most important, so
untitled script pic (1)
is a little cleaner. Of course it's AND inside.

Yeah, funny!

What English word has three consecutive pairs of equal letters (such as "aabbcc")?

bookkeeper, bookkeeping, tattooee

Old MacDonald had a farm, E-I-E-I-O...

If you grew up with that song, it'll help motivate this question:
What English word has the vowels E-I-E-I-O in that order (and no others)?
No fair regex-searching a dictionary!

Oh rip, I didnt know it was already a thing

Sorry.

I found revive but not anything with the last i and o.

Okay, you can grep the dictionary...

spoiler

Asclepieion
epileptiform
hemisection
hyperdistention
lecideiform
medisection
pedicelliform
perihelion
predigestion
predilection
predirection
prediscretion
predispersion
prediversion
preimpression
preinfection
preinflection
preinsertion
preinspection
preintention
preinvention
redigestion
redirection
redissection
redisseisor
redisseizor
rediversion
reimmersion
reimpression
reinfection
reinsertion
reinspection
reinvention
reinversion
semicheviot
semiflexion
semipenniform
semireniform
semisection
sentisection

'hyperdistention' has a y, so that's wrong. sometimes.

I confess, I just excluded aeiou.

The only 'normal' word in that list is predilection. Or for cs types, maybe preinsertion

Nope!