We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d6749 commit c5b10f0Copy full SHA for c5b10f0
libs/prelude/Builtin.idr
@@ -72,7 +72,12 @@ infix 5 #
72
||| A pair type where each component is linear
73
public export
74
data LPair : Type -> Type -> Type where
75
- (#) : (1 _ : a) -> (1 _ : b) -> LPair a b
+ ||| A linear pair of elements.
76
+ ||| If you take one copy of the linear pair apart
77
+ ||| then you only get one copy of its left and right elements.
78
+ ||| @ a the left element of the pair
79
+ ||| @ b the right element of the pair
80
+ (#) : (1 _ : a) -> (1 _ : b) -> LPair a b
81
82
namespace DPair
83
||| Dependent pairs aid in the construction of dependent types by providing
0 commit comments