From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id B35F47FADC for ; Wed, 5 Nov 2014 12:45:38 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of r.wobben@home.nl) identity=pra; client-ip=212.54.42.164; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="r.wobben@home.nl"; x-sender="r.wobben@home.nl"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of r.wobben@home.nl) identity=mailfrom; client-ip=212.54.42.164; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="r.wobben@home.nl"; x-sender="r.wobben@home.nl"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@smtpq1.tb.mail.iss.as9143.net) identity=helo; client-ip=212.54.42.164; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="r.wobben@home.nl"; x-sender="postmaster@smtpq1.tb.mail.iss.as9143.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQBAOYMWlTUNiqkm2dsb2JhbABc224WAQEBAQERAQEBAQEGCwsJFC6EMBFAPRYYAwIBAgE/GQgBAReIKqNHpRaRLYQ1BZMuimCHdJAlAQsBgiWDNgEBAQ X-IPAS-Result: AlQBAOYMWlTUNiqkm2dsb2JhbABc224WAQEBAQERAQEBAQEGCwsJFC6EMBFAPRYYAwIBAgE/GQgBAReIKqNHpRaRLYQ1BZMuimCHdJAlAQsBgiWDNgEBAQ X-IronPort-AV: E=Sophos;i="5.07,319,1413237600"; d="scan'208";a="86421889" Received: from smtpq1.tb.mail.iss.as9143.net ([212.54.42.164]) by mail3-smtp-sop.national.inria.fr with ESMTP; 05 Nov 2014 12:45:38 +0100 Received: from [212.54.42.134] (helo=smtp3.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.76) (envelope-from ) id 1Xlz1t-0000jl-83 for caml-list@inria.fr; Wed, 05 Nov 2014 12:45:37 +0100 Received: from 524acd6d.cm-4-3d.dynamic.ziggo.nl ([82.74.205.109] helo=[192.168.0.100]) by smtp3.tb.mail.iss.as9143.net with esmtp (Exim 4.76) (envelope-from ) id 1Xlz1t-0008S5-26 for caml-list@inria.fr; Wed, 05 Nov 2014 12:45:37 +0100 Message-ID: <545A0DE4.5020409@home.nl> Date: Wed, 05 Nov 2014 12:45:40 +0100 From: Roelof Wobben User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ziggo-spambar: ---- X-Ziggo-spamscore: -4.4 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,CM_META_TB_NOARR=0.5,PROLO_TRUST_RDNS=-3,RDNS_DYNAMIC=0.982 X-Ziggo-Spam-Status: No X-Spam-Flag: No X-Validation-by: r.wobben@home.nl Subject: [Caml-list] what is here the syntax error Hello, I know this question must be asked on the beginners list but I still did not get approved after I left the list. I try again to learn Ocaml and Im stuck at exercise 1 of the 99 ocaml problems. Here is my solution : let rec last list = match list with [] -> None [x] -> Some x [_] -> last [_::t] ;; But now I see a syntax error on the [x] part. Can anyone explain to me what I did wrong ? Roelof