All pastes #939203 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-12 03:02 UTC
rendered paste body
Given a string, compute recursively (no loops) a new string where all the lowercase 'x' chars have been moved to the end of the string. 

endX("xxre") → "rexx" 
endX("xxhixx") → "hixxxx" 
endX("xhixhix") → "hihixxx"