translate

takes a dictionary of translations and replaces each instance sequentially


Parameters

translate string :string :literal
          translations :dictionary

Returns

  • :string
  • or  :nothing

Examples

copy
print translate "the brown fox jumped over the lazy dog" #[ brown: "green" fox: "wolf" jumped:"flew" dog:"cat" ] ; the green wolf flew over the lazy cat

Related