Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Scope-modifiers/Bracmat/scope-modifiers-1.bracmat
Normal file
13
Task/Scope-modifiers/Bracmat/scope-modifiers-1.bracmat
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
67:?x {x has global scope}
|
||||
& 77:?y { y has global scope }
|
||||
& ( double
|
||||
=
|
||||
. !y+!y { y refers to the variable declared in myFunc, which
|
||||
shadows the global variable with the same name }
|
||||
)
|
||||
& ( myFunc
|
||||
= y,z { y and z have dynamic scope. z is never used. }
|
||||
. !arg:?y { arg is dynamically scoped }
|
||||
& double$
|
||||
& !x+!y
|
||||
)
|
||||
1
Task/Scope-modifiers/Bracmat/scope-modifiers-2.bracmat
Normal file
1
Task/Scope-modifiers/Bracmat/scope-modifiers-2.bracmat
Normal file
|
|
@ -0,0 +1 @@
|
|||
/('(x./('(y.$x+$y))$3))$5 { x and y have lexical scope }
|
||||
Loading…
Add table
Add a link
Reference in a new issue