Skip to content

Commit f59a634

Browse files
authored
fix toList-replicate's statement about vectors (agda#2261)
1 parent 3515c22 commit f59a634

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Highlights
99
Bug-fixes
1010
---------
1111

12+
* Fix statement of `Data.Vec.Properties.toList-replicate`, where `replicate`
13+
was mistakenly applied to the level of the type `A` instead of the
14+
variable `x` of type `A`.
15+
1216
Non-backwards compatible changes
1317
--------------------------------
1418

src/Data/Vec/Properties.agda

+1-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ zipWith-replicate₂ _⊕_ (x ∷ xs) y =
11441144
cong (x ⊕ y ∷_) (zipWith-replicate₂ _⊕_ xs y)
11451145

11461146
toList-replicate : (n : ℕ) (x : A)
1147-
toList (replicate n a) ≡ List.replicate n a
1147+
toList (replicate n x) ≡ List.replicate n x
11481148
toList-replicate zero x = refl
11491149
toList-replicate (suc n) x = cong (_ List.∷_) (toList-replicate n x)
11501150

0 commit comments

Comments
 (0)