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
Infix function composition operator
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-10 (03:19)
From: Arlen Christian Mart Cuss <arlen@n...>
Subject: Infix function composition operator
Hi all,

I know this was asked at least 12 years ago[1], but is there any
consensus or reason for there not being a "compose" function in standard
OCaml, nor an infix operator?

At the moment I tend to "let compose" or "let (<<-) f g x = f (g x)",
but I wish I didn't have to!