-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hover] Show documentation on identifier hover.
This is a first, simple prototype, mainly to showcase.
- Loading branch information
Showing
3 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From Coq Require Import List. | ||
Import ListNotations. | ||
|
||
(* asdf *) | ||
Definition hello := 3. | ||
|
||
(** `my_map` a reimplementation of `map` | ||
- this is cool | ||
- really | ||
a source code example. | ||
```coq | ||
Definition my_map bar := 3. | ||
``` | ||
Pretty _nice_ :D | ||
*) | ||
Fixpoint my_map {A B} (f : A -> B) (l : list A) : list B := | ||
match l with | ||
| [] => [] | ||
| (x :: xs) => (f x :: my_map f xs) | ||
end. | ||
|
||
(** I'm going to use `my_map` *) | ||
Definition my_map_alias := @my_map. | ||
|
||
About my_map_alias. | ||
About hello. |