Get number of slots in variadic input

Very clever solution :slight_smile:

I do think it could be made a lot simpler if we stuck to the Snap! block design restriction mentioned by Jens

Then these two pieces of information would let us reconstruct the number of slots


untitled script pic (10)

1st one lets us know total number of slots
2nd one lets us identify which is static and then we can work out number of slots in the variadic one

My problem with your solution is that the only time I've used metaprograming is inside my Snap! -> OpenSCAD project

And since that uses codification - your solution wouldn't work :frowning:

But I do like how you've made your reporter. :slight_smile:

BTW, have you used or seen in a real project, a custom reporter that doesn't align with the official Snap! restriction?