Vyxapedia

Element - - - Subtract

Characters: -


Description

Subtracts the top two items on the stack


Overloads

  • num-num - a - b
  • num-str - ("-" * a) + b
  • str-num - a + ("-" * b)
  • str-str - a.replace(b, '')

Examples

  • 5 4 - = 1
  • 0 -5 - = 5
  • `|` 5 - = `|-----`
  • 3 `> arrow` - = `---> arrow`
  • `abcbde` `b` - = `acde`
  • `asdf` `` - = `asdf`
  • ⟨1|2|3⟩ ⟨1|2|3⟩ - = ⟨0|0|0⟩
  • ⟨10|20|30⟩ 5 - = ⟨5|15|25⟩