thing

From Esolang
Jump to navigation Jump to search

thing is a esolang based on the Collatz function. the program has this format:

number , list of numbers , string

this is how it works:

  • the first number is n
  • the string is w
  • then for each number on the list. lets call one of the numbers k:
  • apply the collatz function f to n, k times(this is u)
  • then check. make a string d where each two digits in u is converted to a ascii char, and see if d is in w
  • if it is it will set w to d
  • set n to u
  • if no number can be found that satisfies the program halts