Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
is there a switch or cond-statement? nested functions?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-09-03 (17:24)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] is there a switch or cond-statement? nested functions?
On Wed, 3 Sep 2008 19:08:33 +0200, circ ular wrote:
> thanks, the type problem is solved. but is there a way to write nested
> functions? so the powerf isn't exposed outwards...
> and how can I rewrite the if statements in a case or cond way? pattern
> mathcing is only on types right? cond a la scheme would be nice.
> (...)

May I suggest

1. You read and at least chap 1-4 of  That
   will clear up most of your questions.

2. You direct subsequent questions to the beginner's list where you will
   receive proper help for your concerns.