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 4820FBC57 for ; Wed, 8 Sep 2010 01:10:11 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjQBAGNjhkxKfVI0imdsb2JhbAChAggVAQEBCgkMBw8FH6Y7i0iGYog7AQEDBYU4BIRDhVWIZw X-IronPort-AV: E=Sophos;i="4.56,330,1280700000"; d="scan'208";a="69030988" Received: from mail-ww0-f52.google.com ([74.125.82.52]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Sep 2010 01:10:10 +0200 Received: by mail-ww0-f52.google.com with SMTP id 28so7644680wwb.9 for ; Tue, 07 Sep 2010 16:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=P7UyWKb0p/ZKhyH71ELd5z3yTz6G/Gcco4sMVdfplNI=; b=ZOxO50c7eBK3pwEbRUZ2V1PBmAog5FBcrCLSyCK45fjTbmDW/giZ8C8H4dziij08oA ZfuHW9PfNnXJEeXCrVqQvbCa2W5FHNKTsRSQGWIqGyvhMLUTiT6bNBR06CROe22LW2U6 ToZe/z3vdPyasECqgOKF7lDZVe+aiMs7YtoMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=oZZpJZIw7lF+Wdw3iQEZk4SB/bEiWsd4jA3JSNt686Ddeqg4ndcvXHCm3PoG0rtXZ8 5FhiNiM8OpMMhvuH63CglLpHDplnq6zD+7vX3AW6wuK5C7NmB9bqT4jeQRoXnXLejfss SHLwfGxXqjGEk39wWArKN8eNtPm+TOIH/E2QQ= Received: by 10.216.182.202 with SMTP id o52mr5682640wem.29.1283901010470; Tue, 07 Sep 2010 16:10:10 -0700 (PDT) MIME-Version: 1.0 Sender: jake.donham@gmail.com Received: by 10.216.3.66 with HTTP; Tue, 7 Sep 2010 16:06:12 -0700 (PDT) From: Jake Donham Date: Tue, 7 Sep 2010 16:06:12 -0700 X-Google-Sender-Auth: sTNWf1Es2D9rqGk7m1Kb70_G4RE Message-ID: Subject: patterns for 3.12.0 To: OCaml List Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; ocaml:01 alist:01 alist:01 foo:01 foo:01 pattern:04 extension:06 extension:06 haven't:09 patterns:10 patterns:10 matches:11 but:14 added:15 keys:15 Hi list, If you are interested in using Jeremy Yallop's patterns extension on OCaml 3.12.0, I have fixed it up here: http://github.com/jaked/patterns I haven't tried anything serious with it but the tests pass. Also I added a little extension for "alist patterns": a pattern alist [ "foo", x; "bar", y ] matches association lists containing keys "foo" and "bar". Jake