Skip to content
Snippets Groups Projects
Commit f3c4eb0a authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Define `head` as notation that also prints (Coq defines it as `parsing only`).

parent e60abdf3
No related branches found
No related tags found
1 merge request!277Misc improvements to `head` and `tail` functions for lists
...@@ -15,6 +15,7 @@ Global Instance: Params (@length) 1 := {}. ...@@ -15,6 +15,7 @@ Global Instance: Params (@length) 1 := {}.
Global Instance: Params (@cons) 1 := {}. Global Instance: Params (@cons) 1 := {}.
Global Instance: Params (@app) 1 := {}. Global Instance: Params (@app) 1 := {}.
Notation head := hd_error.
Notation tail := tl. Notation tail := tl.
Notation take := firstn. Notation take := firstn.
Notation drop := skipn. Notation drop := skipn.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment