Post History
Japt, 9 bytes ô rÈÔÅÔcY Try it or run all test cases ô rÈÔÅÔcY :Implicit input of array ô :Split on falsey elements (i.e., 0) r :Reduce by È :Passing...
Answer
#2: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- ô rÈÔÅÔcY
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9CByyNTF1GNZ&input=WzAsMCwwLDAsMCw1LDddCi1R) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9CByyNTF1GNZ&input=WwpbMCwwLDAsMCwwLDUsN10KWzEsMiwwLDNdClsxLDUsNSwwLDIsMCwwLDhdClsxLDIsMyw0LDAsMCw5XQpbMSwyLDAsMCwwLDAsMF0KXS1tUg)
- # [Japt](https://github.com/ETHproductions/japt), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- ô rÈÔÅÔcY
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9CByyNTF1GNZ&input=WzAsMCwwLDAsMCw1LDddCi1R) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9CByyNTF1GNZ&input=WwpbMCwwLDAsMCwwLDUsN10KWzEsMiwwLDNdClsxLDUsNSwwLDIsMCwwLDhdClsxLDIsMyw0LDAsMCw5XQpbMSwyLDAsMCwwLDAsMF0KXS1tUg)
- ô rÈÔÅÔcY :Implicit input of array
- ô :Split on falsey elements (i.e., 0)
- r :Reduce by
- È :Passing each Y through the following function, with the first element serving as the start value, X
- Ô : Reverse X
- Å : Slice off the first element
- Ô : Reverse
- cY : Concat Y
#1: Initial revision
# [Japt](https://github.com/ETHproductions/japt), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) ô rÈÔÅÔcY [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9CByyNTF1GNZ&input=WzAsMCwwLDAsMCw1LDddCi1R) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9CByyNTF1GNZ&input=WwpbMCwwLDAsMCwwLDUsN10KWzEsMiwwLDNdClsxLDUsNSwwLDIsMCwwLDhdClsxLDIsMyw0LDAsMCw5XQpbMSwyLDAsMCwwLDAsMF0KXS1tUg)