User Tools

Site Tools


ex-l1-sol

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ex-l1-sol [2014/09/22 12:52]
giovanni.casu
ex-l1-sol [2015/10/08 15:20] (current)
Line 101: Line 101:
 <code ocaml> <code ocaml>
 let xor a b =  ( a && not b) || ( b && not a );;  let xor a b =  ( a && not b) || ( b && not a );;
-let xor a b = if (a && b) then true else (a || b);; 
-let xor a b = a != b ;; 
 </​code>​ </​code>​
  
ex-l1-sol.txt ยท Last modified: 2015/10/08 15:20 (external edit)