dudaodong
ef28b52963
fix: fix regex isChineseMobileRegexMatcher not work
2022-08-28 20:58:34 +08:00
dudaodong
18b2b6ff7c
feat: add functons: And, Or, Xor, Nor, Xnor, Nand
2022-08-28 20:57:28 +08:00
dudaodong
6a05a123f4
feat: add Bool function to check if a value is truthy or falsy
2022-08-28 20:38:19 +08:00
dudaodong
f7c33f258d
Merge branch 'main' into v2
2022-08-27 19:25:24 +08:00
dudaodong
04058dd7da
refactor: change common package to condition package
2022-08-27 19:19:34 +08:00
郑一诺她爸
72e1d92fa1
TernaryOperator Reduce if else operations ( #56 )
...
* feat:(slice add AppendIfAbsent function)
* feat:(slice add TernaryOperator function)
Co-authored-by: george.zheng <george.zheng@ambergroup.io >
2022-08-27 19:12:03 +08:00
dudaodong
063df0f0d1
doc: add docment for IsZeroValue function
2022-08-27 19:04:57 +08:00
dudaodong
fc10689b25
feat: add IsZeroValue function
2022-08-27 18:57:45 +08:00
dudaodong
9239bcfdc3
doc: fmt code example
2022-08-26 16:34:20 +08:00
dudaodong
c984815dea
doc: fmt code example
2022-08-26 16:29:55 +08:00
dudaodong
301cb5db87
doc: add hashmap
2022-08-26 16:26:16 +08:00
dudaodong
cc1bacff74
doc: add document for EncodeByte and DecodeByte
2022-08-26 10:54:51 +08:00
dudaodong
f49f75b371
test: add unit test for EncodeByte and DecodeByte
2022-08-26 10:47:25 +08:00
dudaodong
b30f4a7bab
feat: add DecodeByte
2022-08-26 10:35:54 +08:00
dudaodong
982cb8932b
feat: add EncodeByte
2022-08-26 10:34:42 +08:00
dudaodong
9107eb4b32
fix: fix resize bug in HashMap
2022-08-25 14:04:26 +08:00
dudaodong
1acf977b24
release v2.1.5
v2.1.5
2022-08-25 11:11:36 +08:00
dudaodong
5c878d0873
doc: change ReverseStr to Reverse in all docment
2022-08-24 10:37:56 +08:00
dudaodong
ab0716a472
refactor: change ReverseStr to Reverse in strutil package
2022-08-24 10:35:18 +08:00
dudaodong
3c2e0ca5b3
doc: add document for hashmap
2022-08-24 10:28:57 +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
24f18aaaec
refactor: change function sign for QuickSort
2022-08-22 11:02:25 +08:00
dudaodong
36169874e5
refactor: change sort file name
2022-08-22 10:58:47 +08:00
dudaodong
23aeb6ac99
refactor: change sort file name
2022-08-22 10:57:04 +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
Abirdcfly
fbf251d805
delete minor unreachable code caused by log.Fatal ( #54 )
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2022-08-10 14:19:21 +08:00
dudaodong
337f08a04b
fix: issue #53
2022-08-06 17:41:45 +08:00
dudaodong
c6a7371049
change lastest v1 version
2022-08-03 10:02:46 +08:00
dudaodong
b697858038
release v2.1.4
v2.1.4
2022-08-03 09:56:02 +08:00
dudaodong
5446f7e33c
doc: add document for list methods
2022-07-28 12:56:11 +08:00
dudaodong
553f63e76b
refactor: update param name in AppendIfAbsent
2022-07-27 15:45:34 +08:00
dudaodong
fc3e94df58
doc: add document for AppendIfAbsent function
2022-07-27 15:44:54 +08:00
dudaodong
5c66f38a5b
test: fix test function name TestAppendIfAbsent
2022-07-27 15:38:51 +08:00
郑一诺她爸
70e213b3f7
feat:(slice add AppendIfAbsent function) ( #52 )
...
Co-authored-by: george.zheng <george.zheng@ambergroup.io >
2022-07-25 20:52:33 +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
dudaodong
741af66404
test: add todo fix for TestSchedule
2022-07-22 10:30:44 +08:00
dudaodong
ef5d0379a1
doc: fix missing word
2022-07-22 10:24:34 +08:00
dudaodong
105ab49763
refactor: change slice Contain logic, convert to map first, then check existence
2022-07-22 10:22:34 +08:00
dudaodong
b5ba9ba573
fix: fix TestMapToSlice function result independent of order of elements
2022-07-22 10:17:23 +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