This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
14
unikernel/duniverse/base/test/test_applicative.mlt
Normal file
14
unikernel/duniverse/base/test/test_applicative.mlt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
open Base
|
||||
open Expect_test_helpers_base
|
||||
|
||||
let () =
|
||||
let z = 3 in
|
||||
let local_ f x y = x + y + z in
|
||||
let r = Option.map2 (Some 3) (Some 4) ~f in
|
||||
print_s [%sexp (r : int option)]
|
||||
;;
|
||||
|
||||
[%%expect
|
||||
{|
|
||||
(10)
|
||||
|}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue