Page 1 of 1

Combinator bit shift by 'Each'

Posted: Sun Aug 23, 2020 3:41 am
by Discookie
As the title says, currently the arithmetic combinators support the 'Each' operators in their output and left input slots.

Today I encountered a use case where I wanted to calculate `(1 << x)` for many values [to extract specific bits of a value].
Currently this is not possible via a single combinator - only with separate combinators for each value.

My suggestion is to allow the 'Each' value in either of the combinator input slots, but not both of them at the same time.
This way would not cause any consistency issues while allowing other cases as well, eg. `(constant / x) or (constant - x)`.