Tools
- Sandbox
- Paste Code
- Snippets
- Generators
- Checks
- Convertors
[ocaml] code
Viewer
- let x = ref 0;;
- let f2 () =
- print_endline (string_of_int !x);
- x := !x + 1;
- x := !x + 1;
- !x;;
- let rec l1 () =
- if !x > 6 then 0 else begin print_endline ("l1: " ^ (string_of_int !x)); f2 () + l1 () end;;
- l1 ();;
Editor
Share
Do you find this tool useful? Then share it with your friends or colleagues. This will help us to make our free web tools better.
You can edit this paste and save as new:
Information about embedding
In order to embed this content into your website or blog, simply copy and paste one of the codes provided below.
1. JavaScript Embedding (shows full code, full height depending on amount of lines in paste)
<script src="https://wtools.io/code/embed-js/b8jI"></script>
2. Iframe Embedding (you can set the frame height by adding the CSS value 'height:100px;' for example)
<iframe src="https://wtools.io/code/embed-iframe/b8jI" style="border:none;width:100%"></iframe>