Commit 82ad71b
Oron Port
Clarify "the new" in dependent function types
(also added missing `val`)
I was skimming over at this documentation and it actually took me a while to notice what is new.
So I added the comment to clarify.
It is also possible to write `type EntryToKey = (e: Entry) => e.Key` and use it instead to clarify this is a dependent type1 parent 3004af3 commit 82ad71b
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments