Files
Nim/lib/pure
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
..
2020-07-08 08:21:55 +02:00
2020-06-28 13:38:57 +02:00
2018-04-30 02:52:58 +02:00
2020-04-21 15:05:21 +02:00
2015-10-01 12:05:45 -07:00
2020-05-05 10:34:37 +02:00
2020-04-02 02:58:43 +02:00
2018-04-06 11:59:49 +02:00
2020-05-18 17:43:06 +01:00
2020-07-23 15:42:12 +02:00
2020-07-14 13:15:22 +02:00
2020-07-22 10:30:46 +02:00
2019-09-30 13:58:10 +02:00
2020-06-23 15:17:17 +02:00
2020-03-31 15:47:57 +02:00
2020-03-31 15:47:57 +02:00
2019-09-30 13:58:10 +02:00
2020-07-18 10:41:33 +02:00
2020-03-19 10:23:05 +01:00
2020-01-24 08:42:03 +00:00
2020-07-15 03:46:17 -04:00
2020-05-11 19:12:40 +02:00
2020-03-31 15:47:57 +02:00
2020-08-04 11:29:57 +02:00
2020-07-18 10:41:33 +02:00
2020-07-12 03:31:03 -04:00
2020-07-07 22:57:06 +02:00
2020-07-14 16:44:56 +02:00