Skip to content

Examples

okx-code edited this page Aug 5, 2018 · 3 revisions
ĠḞḊĖȦDĊ36C
  • Firstly, (remove first character) is called with the argument ḞḊĖȦDĊ36C
  • Then, (convert to base) is called with ḊĖȦDĊ36 and C.
  • (increment) is called with ĖȦDĊ36
  • (convert from base) is called with ȦDĊ and 36.
  • (concatenate) is called with D and .
  • D is the loop variable, but since we are not in a loop it defaults to 1.
  • gets a line of input, and evaluates it, "123456zzzz" for example.
  • ȦDĊ results in 1123456zzzz.
  • ĖȦDĊ36 converts x (the first argument) from base y (the second argument), which results in 3763604730256127.
  • ḊĖȦDĊ36 increments its first argument, so you get 3763604730256128.
  • ḞḊĖȦDĊ36C converts x to base y. The function C represents the integer that was last used, in this case it was 36, so it converts 3763604730256128 to base 36, which is 11234570000.
  • ĠḞḊĖȦDĊ36C removes the first character from its argument, so you get 1234570000.
  • Now all functions have been evaluated, "1234570000" is printed.
Clone this wiki locally