From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q0K6cxd9019671 for ; Fri, 20 Jan 2012 07:38:59 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al4BAOIKGU/RVdY0kGdsb2JhbABDrXMIIgEBAQEJCQ0HFAQhggsCExkBGx4DEhBdAREBBQEiNaBpgl4Ki2qCb4RtP4hxAgULjBsEiDyMXI4QPYQf X-IronPort-AV: E=Sophos;i="4.71,540,1320620400"; d="scan'208";a="128173830" Received: from mail-bk0-f52.google.com ([209.85.214.52]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 20 Jan 2012 07:38:53 +0100 Received: by bkar19 with SMTP id r19so208578bka.39 for ; Thu, 19 Jan 2012 22:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=ZqbvL9ZHKy+7uLVigO/o6U8uXHQRIPiudlC+4NM+NUU=; b=eEtduCLGhHPllP7cvTMV2eNWMlLpwZI1u/ht5PhEQBl/Psp5AJcaqS16sILjIx4ola TRCexWT/2xyaPgX80sVi9sCmpgc/sSiulhUcHedMBQQ0CeFRoACMO/WkvPm9qoHexI/v euXF87tT2r4Yfaliq82jos8JeO6Bw2gND5oxM= MIME-Version: 1.0 Received: by 10.204.141.14 with SMTP id k14mr10963099bku.67.1327041533064; Thu, 19 Jan 2012 22:38:53 -0800 (PST) Received: by 10.204.171.79 with HTTP; Thu, 19 Jan 2012 22:38:53 -0800 (PST) Date: Thu, 19 Jan 2012 22:38:53 -0800 Message-ID: From: Martin DeMello To: OCaml List Content-Type: text/plain; charset=ISO-8859-1 Subject: [Caml-list] is there a more concise way to write this? let a = match (out, value) with (true, true) -> [o; v] | (false, true) -> [v] | (true, false) -> [o] | (false, false) -> []