From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id AF4F2BBAF for ; Wed, 10 Nov 2010 04:19:50 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlEBAKee2UzRVdS2kGdsb2JhbACDOZEAjXoIFQEBAQEJCQwHEQMfoUKJJJB1gSKDNXMEjWI X-IronPort-AV: E=Sophos;i="4.59,176,1288566000"; d="scan'208";a="77569303" Received: from mail-px0-f182.google.com ([209.85.212.182]) by mail4-smtp-sop.national.inria.fr with ESMTP; 10 Nov 2010 04:19:38 +0100 Received: by pxi1 with SMTP id 1so32780pxi.27 for ; Tue, 09 Nov 2010 19:19:37 -0800 (PST) Received: by 10.142.155.2 with SMTP id c2mr6826171wfe.51.1289359177033; Tue, 09 Nov 2010 19:19:37 -0800 (PST) Received: from [192.168.200.106] (203-206-182-151.perm.iinet.net.au [203.206.182.151]) by mx.google.com with ESMTPS id v19sm196028wfh.0.2010.11.09.19.19.34 (version=SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 19:19:36 -0800 (PST) Subject: Infix function composition operator From: Arlen Christian Mart Cuss To: caml-list@inria.fr Content-Type: text/plain; charset="UTF-8" Date: Wed, 10 Nov 2010 14:19:32 +1100 Message-ID: <1289359172.2282.15.camel@azayaka> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; infix:01 ocaml:01 infix:01 ocaml:01 arlen:98 mart:98 arlen:98 ubuntu:98 caml-list:01 caml:02 tend:03 let:03 let:03 consensus:04 inria:06 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! Thanks, Arlen [1] http://webcache.googleusercontent.com/search?q=cache:TcqI7o37il8J:pauillac.inria.fr/caml/caml-list/0720.html+ocaml+function+compose&cd=2&hl=en&ct=clnk&client=ubuntu