(-)

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually <->.

<-> is an esolang about swapping text, created by User:Yayimhere to return here:)

syntax

an expression is evaluated right from left

  • -"x""y" swaps the order of string x and string y
  • <"x" delete the < and return an expression where its "x""x" so for example -<"x" would return -"x""x"
  • >"x""y" return a string that's "xy", however if it has only one input it will run it as a program in <-> and return the result
  • |"x""y" add a separator between "x" and "y" and the "'s are deleted
  • ^ separates to string making the left right only be influenced by the left and the right side only being affected by the right side. it deletes itself after 3 iterations of the program(left and right side ran at same time. if one errors that side is deleted)
  • :"x" return a string that is a program that would return "x" without using x itself or more than a single substring of "x". if impossible return "0"


everything inside of "" is a string