Post History
Jelly, 6 bytes ṣ0Ṗ;¥/ Try it online! How it works ṣ0Ṗ;¥/ - Main link. Takes a list on the left ṣ0 - Split at zeroes ¥/ - Reduce by: Ṗ - Remove the last element ; - C...
Answer
#1: Initial revision
# [Jelly], 6 bytes ṣ0Ṗ;¥/ [Try it online!][TIO-kpbmluy6] [Jelly]: https://github.com/DennisMitchell/jelly [TIO-kpbmluy6]: https://tio.run/##y0rNyan8///hzsUGD3dOsz60VP//wx2bHu5Y9HBHF1Ag7HD70UkPd87gerh7y@H2R01rIv//jzbQgUFTHfNYBV07hWgQgyvaUMcIKGgMETIEMkBCpkBoAJYw0LGASVlAVRvrmIAlLGESRkAmzCAohEjFAgA "Jelly – Try It Online" ## How it works ṣ0Ṗ;¥/ - Main link. Takes a list on the left ṣ0 - Split at zeroes ¥/ - Reduce by: Ṗ - Remove the last element ; - Concatenate