summaryrefslogtreecommitdiffhomepage
path: root/standard-ml.html.markdown
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2019-03-21 00:55:40 +0530
committerGitHub <noreply@github.com>2019-03-21 00:55:40 +0530
commit45a3087c62dfa844cbde5438f22d1bb939c9d0f7 (patch)
tree5f6bdb988dcb9cab6f8188fd6d1965803dad7885 /standard-ml.html.markdown
parenta8e3a04614688ae2d2adaaae5a1be8342683d084 (diff)
parentc4664b31e5231fb56cb36cbebcef50ee699fda07 (diff)
Merge pull request #3494 from haritonch/patch-1
[SML/en] Added a comment to better demonstrate custom datatypes
Diffstat (limited to 'standard-ml.html.markdown')
-rw-r--r--standard-ml.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/standard-ml.html.markdown b/standard-ml.html.markdown
index b34f1c08..0ba42f39 100644
--- a/standard-ml.html.markdown
+++ b/standard-ml.html.markdown
@@ -272,6 +272,9 @@ fun evenly_positioned_elems (odd::even::xs) = even::evenly_positioned_elems xs
datatype temp =
C of real
| F of real
+
+(* Declaring a new C temp value...
+ val t: temp = C 45.0 *)
fun temp_to_f t =
case t of