coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Satrajit Roy" <satrajit.roy AT gmail.com>
- To: "St�phane Glondu" <steph AT glondu.net>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Lists & Strings
- Date: Tue, 11 Nov 2008 11:38:53 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=cAaQCNaRk3bRFiT8CUsgPMAQu84cd/enEV3cCOzXW/cXmxZarUcBrYrZ8VMLlvIjGZ RCPacMASbf83eRzQn9RnbnCNcSvizc36/nWtdTie61gV48D7t/JT78Rxkp+d5a3xd5/y uZ/UV68ZmUyLYjbmXVLd0TQYuhkjaM7bWUipM=
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Thanks Stephane.
On Tue, Nov 11, 2008 at 11:20 AM, Stéphane Glondu <steph AT glondu.net> wrote:
Satrajit Roy wrote:
> [...]
> Record y: Set := createY {> [...]
> y': string;
> y'': list x;
>
> y''': bool :=
> match (length y') return bool with
> | 0 => false
> | _ => true
> end;
>
> y'''' : bool :=
> match (length y'') return bool with
> | 0 => false
> | _ => true
> end
> }.
Use List.length to get the length of y''. For the sake of clarity, I
recommend you to use String.length for y' as well.
Cheers,
--
Stéphane Glondu
- [Coq-Club] Re: Lists & Strings, Satrajit Roy
- Re: [Coq-Club] Lists & Strings,
Stéphane Glondu
- Re: [Coq-Club] Lists & Strings, Satrajit Roy
- Re: [Coq-Club] Lists & Strings,
Stéphane Glondu
Archive powered by MhonArc 2.6.16.