Skip to content

Commit

Permalink
Fix staticSeq
Browse files Browse the repository at this point in the history
  • Loading branch information
demotomohiro committed Mar 15, 2024
1 parent 728b870 commit 9ba509f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/littlesugar/staticSeq.nim
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ func `==`*[N: static int](x: StaticSeq; y: array[N, x.T]): bool =

true

func toStaticSeq[N: static Natural; T](src: static array[N, T]): StaticSeq[N, T] =
func toStaticSeq*[N: static Natural; T](src: static array[N, T]): StaticSeq[N, T] =
for i in src:
result.add i

func toStaticSeq(src: static string): auto =
func toStaticSeq*(src: static string): auto =
var res: StaticSeq[src.len, char]
for i in src:
res.add i
Expand Down

0 comments on commit 9ba509f

Please sign in to comment.