Skip to content

Commit

Permalink
vector-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWhiting committed Sep 16, 2024
1 parent 2d5084f commit 2de1419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/core/vector.kk
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ pub fun vector-init-total( ^n : int, f : int -> a ) : vector<a>
// Create a new vector of length `n` with initial elements given by function `f` which can have a control effect.
pub fun vector-init( ^n : int, f : int -> e a ) : e vector<a>
val len = n.ssize_t
val v = unsafe-vector(len)
val v = @unsafe-vector(len)
forz( len ) fn(i)
unsafe-assign(v,i,f(i.int))
v
Expand Down

0 comments on commit 2de1419

Please sign in to comment.