English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] q
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-01-06 (23:56)
From: Kamil Shakirov <kamils@i...>
Subject: [Caml-list] q
Hello List,

I use `tuareg' mode for editing my OCaml sources. I want to roll up
long functions in one line (`let'--definition). I usually place many
small auxiliary functions in a body of a main function,
for instance:

let complex_function arg1 arg2 ... =
  let fun_aux1 arg1 arg2 ... =        
    bla bla bla
  let fun_aux2 arg1 arg2 ... =        
    bla bla bla
  let fun_aux3 arg1 ... =        
    bla bla bla
  fun_aux3 arg2
    (fun_aux2 (fun_aux arg1 arg2) arg1)

How can I do this? Is there any additional xemacs package for this
purpose?  Thanks.

My xemacs version:
   XEmacs 21.4 (patch 14) "Reasonable Discussion" (linux)
   "Tuareg Version 1.41.1"


To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners