Skip to content

Commit 7e1d1eb

Browse files
authored
Add it utility function (#1104)
1 parent 54d7102 commit 7e1d1eb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,11 @@ Other minor additions
914914
_<+>_ : String → String → String -- space-introducing append
915915
```
916916

917+
* Added utility function to `Function.Base`:
918+
```agda
919+
it : {A : Set a} → {{A}} → A
920+
```
921+
917922
Version 2.6.1 changes
918923
=====================
919924

src/Function/Base.agda

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,8 @@ A ∋ x = x
175175

176176
typeOf : {A : Set a} A Set a
177177
typeOf {A = A} _ = A
178+
179+
-- Construct an element of the given type by instance search.
180+
181+
it : {A : Set a} {{A}} A
182+
it {{x}} = x

0 commit comments

Comments
 (0)