PageRenderTime 43ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lessons/lesson1/step1/step.html

http://github.com/cago/tryocaml
HTML | 17 lines | 9 code | 8 blank | 0 comment | 0 complexity | 9b830756223666968c980b5502d75d51 MD5 | raw file
Possible License(s): GPL-2.0
 1<h3>Simple Expressions</h3>
 2
 3<p>Numerical expressions are easy to compute in OCaml. For example:</p>
 4
 5<p><code>1+2</code></p>
 6
 7<br/>
 8
 9<p>Strings are also easy to define. For example, you can define a string with your name:</p>
10
11<p><code>"Mary"</code></p>
12
13<br/>
14
15<p>The basic element of a string is a char:</p>
16
17<p><code>'a'</code></p>