Files
rust/library/core/tests
Frank King 97c953f561 Add Iterator::map_windows
This is inherited from the old PR.

This method returns an iterator over mapped windows of the starting
iterator. Adding the more straight-forward `Iterator::windows` is not
easily possible right now as the items are stored in the iterator type,
meaning the `next` call would return references to `self`. This is not
allowed by the current `Iterator` trait design. This might change once
GATs have landed.

The idea has been brought up by @m-ou-se here:
https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Iterator.3A.3A.7Bpairwise.2C.20windows.7D/near/224587771

Co-authored-by: Lukas Kalbertodt <lukas.kalbertodt@gmail.com>
2023-08-11 07:26:51 +08:00
..
2023-04-16 11:38:52 +00:00
2023-08-11 07:26:51 +08:00
2023-06-14 15:21:15 -04:00
2022-10-08 11:48:53 +00:00
2022-07-13 17:07:41 -07:00
2022-12-28 09:18:43 -05:00
2023-04-26 02:10:22 -04:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-05-30 08:00:10 -04:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-07-03 14:05:55 +02:00
2022-02-25 08:00:52 -05:00
2023-08-11 07:26:51 +08:00
2023-07-12 21:38:55 -04:00
2023-05-30 08:00:10 -04:00
2021-11-21 19:10:39 -08:00
2023-04-16 11:38:52 +00:00
2022-09-27 19:23:52 +00:00
2020-07-27 19:51:13 -05:00
2022-08-20 12:49:20 -04:00
2022-12-30 14:00:42 +01:00
2023-01-02 10:33:23 -08:00
2023-04-16 11:38:52 +00:00
2020-07-27 19:51:13 -05:00
2022-07-08 21:18:15 +00:00
2022-06-27 13:30:44 -04:00