Types
Iterable[T] = concept self T when SupportIteratorHit: iterator items(self): T else: when defined(js): typeof(self.items(), ItemTypeMode) is T else: for value in self: value is T
- Mimic Pythons Iterable. But not checks iter Source Edit
Mapping[K; V] = concept selfof Collection[K] K V self[K] is V
- Source Edit
MutableSequence[T] = concept selfof Sequence[T] T self[int] = T self.delitem(int) self.insert(int, T) ## insert item before index
- __delitem__ Source Edit
Sequence[T] = concept selfof Collection[T] T self[int] is T
- Source Edit
Procs
func append[T](ms: MutableSequence[T]; x: T)
- Source Edit
func clear(ms: MutableSequence)
- Source Edit
func extend[T](ms: MutableSequence[T]; it: Iterable[T])
- Source Edit
func pop[T](ms: MutableSequence[T]; index = -1): T
- Source Edit
func remove[T](ms: MutableSequence[T]; x: T)
- Source Edit
func reverse(ms: MutableSequence)
- Source Edit