alias

assign symbol to given function


Parameters

alias symbol :string :symbol :symbolliteral :block
      function :string :word :literal

Attributes

infix use infix precedence

Returns

  • :nothing

Examples

copy
addThem: function [x, y][ x + y ] alias --> 'addThem print --> 2 3 ; 5

copy
multiplyThem: function [x, y][ x * y ] alias.infix {<=>} 'multiplyThem print 2 <=> 3 ; 6

Related