Post History
Japt -x, 4 bytes Takes input as an array of binary digits. òÎl1 Try it òÎl1 :Implicit input of binary digit array ò :Partition between elements where Î : The sign of thei...
#2: Post edited
- # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Takes input as an array of binary digits.
- òÎl1
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&header=7DI&code=8s5sMQ&input=MTQzMTY1NTc2NQ)
- # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Takes input as an array of binary digits.
- òÎl1
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&header=7DI&code=8s5sMQ&input=MTQzMTY1NTc2NQ)
- òÎl1 :Implicit input of binary digit array
- ò :Partition between elements where
- Î : The sign of their difference is truthy (not 0)
- l1 :Filter to elements of length 1
- :Implicit output of sum of resulting array
#1: Initial revision
# [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
Takes input as an array of binary digits.
òÎl1
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&header=7DI&code=8s5sMQ&input=MTQzMTY1NTc2NQ)
