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
dudaodong
a8761eefb0
doc: update package comment for datastructure package
2023-06-01 14:28:04 +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
13bbe19ab2
fix: fix lint issue
2022-12-10 16:41:40 +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
donutloop
ac3baac5c6
list: Add LastIndexOfFunc and IndexOfFunc method ( #48 )
...
* LastIndexOfFunc returns the index of the last occurrence of the value in this list satisfying f(data[i])
* IndexOfFunc returns the first index satisfying f(v)
2022-07-22 10:04:31 +08:00
donutloop
a82b5dd206
list: add LastIndexOf ( #46 )
...
Add LastIndexOf method too List and fix doc
LastIndexOf returns the index of the last occurrence of the value in this list.
if not found return -1
2022-07-21 15:19:18 +08:00
dudaodong
44370aef5e
refactor: change variable name to
2022-07-18 15:52:51 +08:00
dudaodong
7b84fbfd94
fix: fix misspellings ->
2022-05-30 20:54:34 +08:00
dudaodong
48c1f8ffad
fix: fix some spell mistake
2022-02-13 19:00:44 +08:00
dudaodong
f551c56921
refactor: reconstructure souce file into the corresponding folder
2022-02-10 17:57:53 +08:00