Atom - Ḅ
- Binary to Integer
Characters: Ḅ
Tags: math , number , array , base
Arity: monadic
This atom is monadic, which means it takes one argument.
Functionality
Convert a list of digits from binary (base 2) to a number. Vectorizes at depth 1.
Details
The digits don't actually need to be in the appropriate range or even integers. It just adds the last element, double the second last element, quadruple the third last element, etc.
Synonyms
This atom should work roughly the same way as or very similarly in concept to the following code snippets (some edge case exceptions may exist):
ḅ2$