Skip to content

Commit 9fb6fc4

Browse files
committed
Involution examples
1 parent 069fe05 commit 9fb6fc4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

flambdatest/mlexamples/involutions.ml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
let f x =
3+
not (not (not x))
4+
5+
let g x =
6+
~- (~- (~- x))
7+
8+
let h x =
9+
Int64.(neg (neg (neg x)))
10+
11+
let i x =
12+
Int32.(neg (neg (neg x)))
13+
14+
let j x =
15+
Nativeint.(neg (neg (neg x)))
16+
17+
let k x =
18+
~-. (~-. (~-. x))

0 commit comments

Comments
 (0)