Skip to content

Commit

Permalink
fix(NonEmpty): hide the pseudo 'tail'
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Nov 25, 2023
1 parent 678da16 commit c854bb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Mugen/Data/NonEmpty.agda
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ head : List⁺ A → A
head [ x ] = x
head (x ∷ xs) = x

tail : List⁺ A List⁺ A
tail [ x ] = [ x ]
tail (x ∷ xs) = xs
private
tail : List⁺ A List⁺ A
tail [ x ] = [ x ]
tail (x ∷ xs) = xs

[]-inj : {x y : A} [ x ] ≡ [ y ] x ≡ y
[]-inj p = ap head p
Expand Down

0 comments on commit c854bb8

Please sign in to comment.