with

create closure-style block by embedding given words


Parameters

with embed :string :word :literal :dictionary :block
     body :block

Returns

  • :block

Examples

copy
f: function [x][ with [x][ "the multiple of" x "is" 2*x ] ] multiplier: f 10 print multiplier ; the multiple of 10 is 20

Related