Okay, say I make a calculator with 16 buttons (10 ...

# rxm

michaelzinn

11/03/2017, 9:24 AMOkay, say I make a calculator with 16 buttons (10 digits, decimal separator, +- multiply /, ENTER), how would I “parse” numbers? I mean, I guess I would create a “number-like” observable by filtering the “all buttons” observable to the digits and the decimal point, but how would I move the last entered number onto the “stack” when the user presses +- multiply / or ENTER?