I posed that as a question on the final in an Icon class I taught this past
semester.

Several students found a more concise solution but here's what I put forth
as a solution:

procedure urlfromhex(s)
    s ? {
        r := ""
        while r ||:= tab(upto('%')) do {
            move(1)
            code := integer("16r"||move(2)) | fail
            r ||:= char(code)
            }
        return r || tab(0)
        }
end



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to