View/Edit #111:decode_rail_fence

Switch to edit mode.

Name(s): decode_rail_fence
1:  {string} = args
2:  while (string[$] == "x")
3:    string = string[1..$ - 1]
4:  endwhile
5:  r = ""
6:  for x in [1..length(string) / 2]
7:    r = tostr(r, string[x], string[x + $ / 2 + $ % 2])
8:  endfor
9:  if (length(string) % 2)
10:   r = r + string[$ / 2 + 1]
11: endif
12: return r
13: "This verb previously owned by manta (#7165), and chowned to $slacker upon dewizarding (Sat Aug 17 14:50:05 2002 MDT)."
14: "Last modified by Dax (#789) on Sat Aug 17 14:50:05 2002 MDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Slacker (#55)

You are not logged in.

[home | help | who | search | setup | code]