Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Variables/Ol/variables.ol
Normal file
21
Task/Variables/Ol/variables.ol
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
; Declare the symbol 'var1' and associate number 123 with it.
|
||||
(define var1 123)
|
||||
(print var1)
|
||||
; ==> 123
|
||||
|
||||
; Reassociate number 321 with var1.
|
||||
(define var1 321)
|
||||
(print var1)
|
||||
|
||||
; Create function that prints value of var1 ...
|
||||
(define (show)
|
||||
(print var1))
|
||||
; ... and eassociate number 42 with var1.
|
||||
(define var1 42)
|
||||
|
||||
(print var1)
|
||||
; ==> 42
|
||||
; var1 prints as 42, but...
|
||||
(show)
|
||||
; ==> 321
|
||||
; ... function 'show' still print old associated value
|
||||
Loading…
Add table
Add a link
Reference in a new issue