basic Ocaml syntax

23 December 2007

for variable = start [strong]to[/strong]/downto end do
    expression
done   List.iter f my_list (* f is a function that takes 1 argument *)

Entry Filed under: ocaml. .

Leave a Comment

hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

December 2007
M T W T F S S
« Nov    
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Most Recent Posts