donutloop
4277e8eca5
CopyOnWriteList add IndexOfFunc and LastIndexOfFunc ( #178 )
...
Allow users to apply functional predicates alongside 'index of' and 'last index of' search methods in this specialized list variant
2024-02-24 17:53:58 +08:00
donutloop
fdc93c8cc7
Change naming ( #177 )
...
Utilize terminology from the Go SDK rather than introducing novel terms to describe concepts.
2024-02-24 17:25:31 +08:00
dudaodong
9fd0603f4a
fix: fix copylocks warning in Optional struct methods
2024-02-19 10:22:28 +08:00
donutloop
bf4b2b5fd6
Add optional ( #170 )
...
* Add optional
Wrapper container with easy to understand helper methods
* Add test and rewrite test
* Add panic test
* Add TestOrElseGetHappyPath
2024-02-19 09:59:42 +08:00
dudaodong
80e48f06ca
refactor: rename lancetconstraints package name to constraints
2023-12-16 19:29:06 +08:00
dudaodong
61a612a06a
update: update Enqueue and Dequeue
2023-10-07 10:53:45 +08:00
Faucherwind
b5f86a488c
feat: CopyOnWriteList adds more functions such as ForEach, Sort... ( #126 )
...
* feat: CopyOnWriteList adds more functions such as ForEach, Sort
* feat: CopyOnWriteList adds more functions such as ForEach, Sort
2023-08-03 15:05:30 +08:00
Faucherwind
40cad365c0
feat: add CopyOnWriteList. A thread-safe list. ( #125 )
...
* fix: use loop to get value . On Get() and Contains()
* fix: Use reflect. DeepEqual() determines whether the keys are equal
* feat: add CopyOnWriteList. A thread-safe list.
* fix: fix failed unit test
* feat: add Equal() in CopyOnWriteList.
fix: update some function`s names
* doc: add copyonwritelist.md and copyonwritelist_zh-CN.md
2023-08-02 11:10:10 +08:00
Faucherwind
6386ab908d
fix: use loop to get value . On Get() and Contains() ( #124 )
...
* fix: use loop to get value . On Get() and Contains()
* fix: Use reflect. DeepEqual() determines whether the keys are equal
2023-08-01 11:14:45 +08:00
dudaodong
ab364744b6
test: add parallel running for all unit test functions
2023-06-29 14:49:28 +08:00
dudaodong
a8761eefb0
doc: update package comment for datastructure package
2023-06-01 14:28:04 +08:00
dudaodong
4311b9ac66
test: remove t.Log()
2023-04-26 14:59:45 +08:00
dudaodong
91503b1656
comment TestEachWithBreak
2023-03-29 10:31:38 +08:00
dudaodong
e2522cd29b
fix: fix TestEachWithBreak case
2023-03-29 10:24:41 +08:00
dudaodong
05772d8d7d
comment TestEachWithBreak
2023-03-28 20:08:05 +08:00
dudaodong
0aa41f337d
fix: test failed
2023-03-20 16:39:56 +08:00
dudaodong
965e5fbcda
feat: add Pop for set
2023-03-20 11:10:35 +08:00
dudaodong
70d0adde42
feat: add EachWithBreak for set
2023-03-20 10:49:14 +08:00
dudaodong
081908bce3
fix: fix goline error
2023-03-01 11:10:12 +08:00
dudaodong
ebe494051b
doc: add doc for some new methods of list
2023-02-06 11:35:32 +08:00
dudaodong
c35bda6a65
feat: add ListToMap for list
2023-02-06 11:06:46 +08:00
dudaodong
1fe4cdc429
feat: add Difference and SymmetricDifference for list
2023-02-06 10:55:42 +08:00
燕归来
325be0d6a1
feat: add func Iterator, ForEach, RetainAll and DeleteAll for List structure ( #71 )
2023-02-06 09:46:25 +08:00
dudaodong
ad20159de2
doc: update doc for datastructure package
2023-01-08 15:41:59 +08:00
dudaodong
8b99641de0
test: remove print info in test function
2022-12-10 19:19:49 +08:00
dudaodong
00407e5182
fix: fix lint issue
2022-12-10 19:09:18 +08:00
dudaodong
4e457ad672
change: change update and insert function in link datastruture
2022-12-10 17:45:29 +08:00
dudaodong
1197e8d1b6
fix: fix lint issue
2022-12-10 16:53:41 +08:00
dudaodong
13bbe19ab2
fix: fix lint issue
2022-12-10 16:41:40 +08:00
dudaodong
37c7508ad0
feat: add NewSetFromSlice function for set
2022-11-30 12:00:55 +08:00
dudaodong
5466a23019
refactor: fix bad code smell
2022-11-30 11:20:13 +08:00
dudaodong
5692982dd1
feat: add AddIfNotExistBy function for set
2022-11-29 23:59:22 +08:00
dudaodong
c39c8914fb
refactor: fix bad code smell
2022-11-29 23:50:17 +08:00
dudaodong
29bdca1bd2
feat: add AddIfNotExist function for set
2022-11-29 23:39:29 +08:00
dudaodong
bcd1cabf80
feat: add Keys and Values function for hashmap
2022-10-10 16:34:05 +08:00
dudaodong
fab24c8d12
feat: add Iterate for hashmap datastructure
2022-10-10 15:25:30 +08:00
dudaodong
9107eb4b32
fix: fix resize bug in HashMap
2022-08-25 14:04:26 +08:00
dudaodong
551e66ba29
refactor: update HashMap Put method
2022-08-24 10:20:02 +08:00
dudaodong
4eeeabb227
feat: add Delete method for hashmap
2022-08-23 15:07:54 +08:00
dudaodong
b3437fdddf
feat: add Delete method for hashmap
2022-08-23 15:07:13 +08:00
dudaodong
312dcab369
feat: add Delete method for hashmap
2022-08-23 15:05:32 +08:00
dudaodong
0cb89f4f46
test: add unit test for HashMap
2022-08-23 14:15:51 +08:00
dudaodong
a2dec87995
feat: add Put method for hashmap
2022-08-23 14:11:14 +08:00
dudaodong
9094cb29bf
feat: add new HashMap data structure
2022-08-22 15:21:30 +08:00
dudaodong
ddb992ad2f
refactor: BuildMaxHeap
2022-08-22 11:10:17 +08:00
dudaodong
a1984f0a59
feat: add BuildMaxHeap
2022-08-22 10:51:37 +08:00
IceCafeCup
c95db23d2c
feat: Set struct uses empty struct as value ( #55 )
2022-08-13 12:39:30 +08:00
donutloop
c1b7500bcb
List: add cap ( #51 )
...
Cap return cap of the inner data
2022-07-25 20:50:31 +08:00
donutloop
3d7600a9e4
list: add DeleteIf method ( #50 )
...
DeleteIf delete all satisfying f(data[i]), returns count of removed elements
2022-07-23 18:52:29 +08:00
donutloop
0299c454ab
list: add sublist method ( #49 )
...
SubList returns a sub list of the original list between the specified fromIndex, inclusive, and toIndex, exclusive.
2022-07-23 15:00:04 +08:00