Created
December 8, 2012 23:26
-
-
Save alesya-h/4242505 to your computer and use it in GitHub Desktop.
Suming boxes and temperature to get length
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type length = int;; | |
type boxes = int;; | |
type temperature = int;; | |
let make_len x : length = x;; | |
let make_box x : boxes = x;; | |
let make_temp x : temperature = x;; | |
let sum_len (a:length) (b: length) : length = a+b;; | |
sum_len (make_box 5) (make_temp 10);; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was completely wrong about this. This have to be something like the following: