1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00
Commit Graph

6 Commits

Author SHA1 Message Date
donutloop 473f9c9f3e Iterator: general refactoring and reset method (#193)
Feature

Reset allows for the iteration process over a sequence to be restarted from the beginning.
It enables reusing the iterator for multiple traversals without needing to recreate it.

Refactoring

It is a idiomatic practice to design functions and methods to return concrete struct types.
This approach promotes flexibility and decoupling, allowing the calling code to work with any implementation that satisfies the interface
2024-02-29 11:30:12 +08:00
dudaodong ab364744b6 test: add parallel running for all unit test functions 2023-06-29 14:49:28 +08:00
dudaodong dd1147f6d0 feat: add Channel iterator 2022-12-26 15:02:28 +08:00
dudaodong 6da7ce64af test: add unit test for RangeIterator 2022-12-26 14:24:23 +08:00
dudaodong eb66d038ac feat: update iterator package 2022-11-29 13:58:48 +08:00
dudaodong a99ada5ee1 feat: add iterator package 2022-11-28 19:24:25 +08:00