Post History
Jelly, 8 bytes ṖUs2UṭµF Try it online! -1 byte thanks to caird coinheringaahing (Also posted on Stack Exchange by myself) ṖUs2UṭµF Main Link Ṗ pop (remove last element; for numbe...
Answer
#4: Post edited
# [Jelly], 9 bytes’RUs2UṭµF[Try it online!][TIO-kpn42hiq]- [Jelly]: https://github.com/DennisMitchell/jelly
[TIO-kpn42hiq]: https://tio.run/##y0rNyan8//9Rw8yg0GKj0Ic71x7a6vbf0CDocPujpjXu/wE "Jelly – Try It Online"- (Also posted on [Stack Exchange](https://codegolf.stackexchange.com/a/229217/68942) by myself)
- ```
’RUs2UṭµF Main Link’ decrementR rangeU reverses2 slice into chunks of length 2U reverse each chunkṭ tack; prepend the inputµ (new chain)F flatten the list- ```
- # [Jelly], 8 bytes
- ṖUs2UṭµF
- [Try it online!][TIO-kpn96on4]
- [Jelly]: https://github.com/DennisMitchell/jelly
- [TIO-kpn96on4]: https://tio.run/##AR8A4P9qZWxsef//4bmWVXMyVeG5rcK1Rv8xMFLDh@KCrEf/ "Jelly – Try It Online"
- -1 byte thanks to caird coinheringaahing
- (Also posted on [Stack Exchange](https://codegolf.stackexchange.com/a/229217/68942) by myself)
- ```
- ṖUs2UṭµF Main Link
- Ṗ pop (remove last element; for numbers, comes with an implicit range)
- U reverse
- s2 slice into chunks of length 2
- U reverse each chunk
- ṭ tack; prepend the input
- µ (new chain)
- F flatten the list
- ```
#3: Post edited
- # [Jelly], 9 bytes
- ’RUs2UṭµF
- [Try it online!][TIO-kpn42hiq]
- [Jelly]: https://github.com/DennisMitchell/jelly
- [TIO-kpn42hiq]: https://tio.run/##y0rNyan8//9Rw8yg0GKj0Ic71x7a6vbf0CDocPujpjXu/wE "Jelly – Try It Online"
- ```
- ’RUs2UṭµF Main Link
- ’ decrement
- R range
- U reverse
- s2 slice into chunks of length 2
- U reverse each chunk
- ṭ tack; prepend the input
- µ (new chain)
- F flatten the list
- ```
- # [Jelly], 9 bytes
- ’RUs2UṭµF
- [Try it online!][TIO-kpn42hiq]
- [Jelly]: https://github.com/DennisMitchell/jelly
- [TIO-kpn42hiq]: https://tio.run/##y0rNyan8//9Rw8yg0GKj0Ic71x7a6vbf0CDocPujpjXu/wE "Jelly – Try It Online"
- (Also posted on [Stack Exchange](https://codegolf.stackexchange.com/a/229217/68942) by myself)
- ```
- ’RUs2UṭµF Main Link
- ’ decrement
- R range
- U reverse
- s2 slice into chunks of length 2
- U reverse each chunk
- ṭ tack; prepend the input
- µ (new chain)
- F flatten the list
- ```
#2: Post edited
- # [Jelly], 9 bytes
- ’RUs2UṭµF
- [Try it online!][TIO-kpn42hiq]
- [Jelly]: https://github.com/DennisMitchell/jelly
[TIO-kpn42hiq]: https://tio.run/##y0rNyan8//9Rw8yg0GKj0Ic71x7a6vbf0CDocPujpjXu/wE "Jelly – Try It Online"
- # [Jelly], 9 bytes
- ’RUs2UṭµF
- [Try it online!][TIO-kpn42hiq]
- [Jelly]: https://github.com/DennisMitchell/jelly
- [TIO-kpn42hiq]: https://tio.run/##y0rNyan8//9Rw8yg0GKj0Ic71x7a6vbf0CDocPujpjXu/wE "Jelly – Try It Online"
- ```
- ’RUs2UṭµF Main Link
- ’ decrement
- R range
- U reverse
- s2 slice into chunks of length 2
- U reverse each chunk
- ṭ tack; prepend the input
- µ (new chain)
- F flatten the list
- ```