with

create closure-style block by embedding given words


Parameters

with embed :literal :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