diff --git a/content/seqs.md b/content/seqs.md index eeb339a..0dac240 100644 --- a/content/seqs.md +++ b/content/seqs.md @@ -4,7 +4,7 @@ title: Seqs # Seqs -Seqs provide dynamically expandable storage, they are extended as needed. +Seqs, abbreviated from "sequence", provide dynamically expandable storage. There are two ways to create seqs, with the `@` operator and with the `newSeq[T](n: int)` method. Once a seq is created, it can be modified using the `add(item: T)`, `delete(idx: int)`. The length of a seq can be found through `len: int`, and the maximum index through `high: int`. The standard `items: T` and `pairs: tuple[i: int, v: T]` iterators are also available. @@ -50,4 +50,4 @@ var thisSeq = newSeq[int](10) foo(thisSeq) assert thisSeq[9] == 999 -``` \ No newline at end of file +```