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

13 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 65315dafb1 feat: add take iterator 2022-12-26 17:20:14 +08:00
dudaodong b06fb6736d feat: add reduce for iterator 2022-12-26 16:55:24 +08:00
dudaodong b9f0854950 feat: add join iterator 2022-12-26 15:58:44 +08:00
dudaodong 6a2dd328ad feat: add test for map iterator and filter iterator 2022-12-26 15:13:35 +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 a70ec6ad1e refactor: use constraints from golang.org/x/exp/constraints 2022-12-11 11:25:34 +08:00
dudaodong 13bbe19ab2 fix: fix lint issue 2022-12-10 16:41:40 +08:00
dudaodong 2d905ab03e fix: fix word misspelling 2022-12-04 11:25:02 +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