about summary refs log tree commit diff stats
path: root/html/factorial.png
diff options
context:
space:
mode:
Diffstat (limited to 'html/factorial.png')
0 files changed, 0 insertions, 0 deletions
cbe1b228b3328af8ced0'>^
760f683f ^
f8a4a457 ^
4a48bedc ^
f8a4a457 ^

1
2
3
4
5
6
7
8
9
10
11
12
13



                    
                            


       
                 
             
             

                                                                              
# compare mutable.mu

def main [
  local-scope
  x:&:num <- new number:type
  foo x
]

def foo x:&:num [
  local-scope
  load-inputs
  *x <- copy 34  # will cause an error because x is immutable in this function
]