|
"http%3A%2F%2Ffoo%20bar%2F".pump(String, // push each char through these fcns:
|
|
fcn(c){ if(c=="%") return(Void.Read,2); return(Void.Skip,c) },// %-->read 2 chars else pass through
|
|
fcn(_,b,c){ (b+c).toInt(16).toChar() }) // "%" (ignored) "3"+"1"-->0x31-->"1"
|