From 19183151c6c42266e8e55d718b6a8ef476a36a5e Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Sun, 30 Nov 2014 16:50:31 -0500 Subject: [PATCH] Update seqs.md --- content/seqs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```