mirror of https://github.com/Wilfred/difftastic/
20 lines
409 B
OCaml
20 lines
409 B
OCaml
let ( + ) = ( * )
|
|
(* ^ operator *)
|
|
(* ^ operator *)
|
|
let x = (1 + 2) :: 3
|
|
(* ^ operator *)
|
|
(* ^ operator *)
|
|
|
|
let f = function +1 -> true | -1 -> true | _ -> false
|
|
(* ^ operator *)
|
|
(* ^ operator *)
|
|
|
|
let ( let* ) x f = f x
|
|
(* ^ operator *)
|
|
|
|
let () =
|
|
let* x = 0 and* y = 1 in
|
|
(* <- keyword *)
|
|
(* ^ keyword *)
|
|
ignore x
|