Skip to content

Commit 7c07c7b

Browse files
committed
FEAT: including WITH control function
(evaluates a given block binded to specified context)
1 parent 7c23410 commit 7c07c7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mezz/mezz-control.r

+8
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ wrap: func [
3434
do bind/copy/set body make object! 0
3535
]
3636

37+
with: func[
38+
"Evaluates a block binded to the specified context."
39+
context [object!]
40+
body [block!]
41+
][
42+
do bind body context
43+
]
44+
3745
any-of: func [
3846
"Returns the first value(s) for which the test is not FALSE or NONE."
3947
'word [word! block!] "Word or block of words to set each time (local)"

0 commit comments

Comments
 (0)