Skip to content

Commit 588cb64

Browse files
committed
add an example of polymorphic functions
1 parent 2a80428 commit 588cb64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ml_example/polymorphic_function.sml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fun id x = x
2+
val x = id 1
3+
val y = id false

0 commit comments

Comments
 (0)