Extension help w/ functions

Is it possible to make a block look like (in an extension):

.png (original:) .png

Basically, its 2 function parts in one block.

1 Like

Why would we want this?

to find out which is faster, e.g. x | 0 vs Math.floor(x) vs Math.trunc(x) vs the other 2 Math functions. It could be really useful for huge loops (e.g. raycasting).

1 Like

Short answer: no (I tried before)

1 Like

just create a project that runs math floor 1000 times every frame or less and then the same for math trunc math ceiling and math round

1 Like

im thinking maybe have a
_function(a: () => void) { return a }
and just make the input an array, like
.png (original:) .png

would that work?

but I want an extension to make it easier for other users.

Nashe what is this jargon

1 Like

Can’t pass functions as arguments in blocks mate

moderators please edit to: “make” not “nashe”