Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to make function with implicit arguments

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to make function with implicit arguments


Chronological Thread 
  • From: Ilmārs Cīrulis <ilmars.cirulis AT gmail.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] How to make function with implicit arguments
  • Date: Sun, 27 Oct 2013 01:14:03 +0300

Okay, it seems that curly braces is enough:
Definition id {t:Type} (l: list t) := l.

Sorry for the disturbance.


On Sun, Oct 27, 2013 at 12:47 AM, Ilmārs Cīrulis <ilmars.cirulis AT gmail.com> wrote:
Let's suppose that I'm too lazy and want to use the function
Definition id (t: Type) (l: list t) := l
in lazy way:
Definition test := id (cons 1 nil)
(without argument t, because it can be found from the type of the list)

How can I make it in such way, if possible?




Archive powered by MHonArc 2.6.18.

Top of Page