Files
Nim/lib
ee7 6f482ab934 deques.nim: Refactor the toDeque functionality (#15166)
This commit polishes the new proc introduced by d9ed816b10.

Changes:
- Rename to `toDeque` for more consistency with well-known procs like
  `toHashSet` and `toTable`.
- Rename the `openArray` parameter. The name `arr` was potentially less
  clear given that the proc can be used with a seq (or string).
- Add a `since` annotation.
- Reword the doc comment, and clarify that ordering is preserved.
- Add runnableExamples.
- Add "see also" cross linking between `initDeque` and `toDeque`.
- Remove duplicate `nextPowerOfTwo`. The `initImpl` template already
  includes it.
- Implement the proc using the `items` iterator, rather than indexing.
  This matches the implementation of `sets.toHashSet` and
  `tables.toTable`.
- Add a test within `when isMainModule`.
- Add a changelog entry.
2020-08-07 22:54:34 +02:00
..
2017-02-20 17:24:19 +02:00
2019-07-14 16:08:15 +02:00
2020-07-24 21:15:20 +02:00
2020-07-06 13:41:56 +02:00
2020-08-01 11:30:51 +02:00
2013-03-16 23:53:07 +01:00
2014-08-28 09:59:26 +02:00
2020-07-27 13:07:09 +02:00