Pyth, 13 bytes
.UXtlZZbcQ"|> Explanation:
.U cQ"|> | Reduce the input split at "|>" on the following lambda, where b is the nextcurrent itemvalue and Z is the currentnext valueitem: XtlZZb | Insert b into Z at index len(Z)-1 Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internal.UXtlZZbcQ"|> Explanation:
.U cQ"|> | Reduce the input split at "|>" on the following lambda, where b is the nextcurrent itemvalue and Z is the currentnext valueitem: XtlZZb | Insert b into Z at index len(Z)-1 .UXtlZZbcQ"|> Explanation:
.U cQ"|> | Reduce the input split at "|>" on the following lambda, where b is the next item and Z is the current value: XtlZZb | Insert b into Z at index len(Z)-1 .UXtlZZbcQ"|> Explanation:
.U cQ"|> | Reduce the input split at "|>" on the following lambda, where b is the current value and Z is the next item: XtlZZb | Insert b into Z at index len(Z)-1 .UXtlZZbcQ"|> Explanation:
.U cQ"|> | Reduce the input split at "|>" on the following lambda, where b is the next item and Z is the current value: XtlZZb | Insert b into Z at index len(Z)-1