All pastes #939233 Raw Edit

Something

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

changeXY("codex") → "codey" 
changeXY("xxhixx") → "yyhiyy" 
changeXY("xhixhix") → "yhiyhiy"