Clarification Oblig 2
Clarification:
In the SML oblig 2 it says that you are not allowed to use assignments.
That means that you can't use mutable references (destructive updates) and assign new values to these.
Like
val mutVar = ref 1;
mutVar := 2;
You are of course allowed to use variable bindings as in
val x = 1;
or
let val (a,b) in a+b end;
Publisert 29. sep. 2017 17:07
- Sist endret 29. sep. 2017 17:07