Skip to main content
edited body
Source Link
hakr14
  • 5.5k
  • 1
  • 14
  • 20

Pyth, 13 bytes

.UXtlZZbcQ"|> 

&test_suite=1&test_suite_input="2|>myFunction()""other_function()|>new_function()|>baz()|>bar()|>foo()"&debug=0" rel="nofollow noreferrer">Test suite


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 

Pyth, 13 bytes

.UXtlZZbcQ"|> 

&test_suite=1&test_suite_input="2|>myFunction()""other_function()|>new_function()|>baz()|>bar()|>foo()"&debug=0" rel="nofollow noreferrer">Test suite


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 

Pyth, 13 bytes

.UXtlZZbcQ"|> 

&test_suite=1&test_suite_input="2|>myFunction()""other_function()|>new_function()|>baz()|>bar()|>foo()"&debug=0" rel="nofollow noreferrer">Test suite


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 
Source Link
hakr14
  • 5.5k
  • 1
  • 14
  • 20

Pyth, 13 bytes

.UXtlZZbcQ"|> 

&test_suite=1&test_suite_input="2|>myFunction()""other_function()|>new_function()|>baz()|>bar()|>foo()"&debug=0" rel="nofollow noreferrer">Test suite


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