|
1 | 1 | package sliceutil
|
2 | 2 |
|
3 | 3 | // JoinInt see Join
|
| 4 | +// |
4 | 5 | // Deprecated: use Join
|
5 | 6 | func JoinInt(ints []int64) string {
|
6 | 7 | return Join(ints)
|
7 | 8 | }
|
8 | 9 |
|
9 | 10 | // UniqInt64 see Unique
|
| 11 | +// |
10 | 12 | // Deprecated: use Unique
|
11 | 13 | func UniqInt64(list []int64) []int64 {
|
12 | 14 | return Unique(list)
|
13 | 15 | }
|
14 | 16 |
|
15 | 17 | // UniqString see Unique
|
| 18 | +// |
16 | 19 | // Deprecated: use Unique
|
17 | 20 | func UniqString(list []string) []string {
|
18 | 21 | return Unique(list)
|
19 | 22 | }
|
20 | 23 |
|
21 | 24 | // UniqueMergeSlices see MergeUnique
|
| 25 | +// |
22 | 26 | // Deprecated: use MergeUnique
|
23 | 27 | func UniqueMergeSlices(s [][]int64) (result []int64) {
|
24 | 28 | return MergeUnique(s)
|
25 | 29 | }
|
26 | 30 |
|
27 | 31 | // InStringSlice see Contains
|
| 32 | +// |
28 | 33 | // Deprecated: use Contains
|
29 | 34 | func InStringSlice(list []string, str string) bool {
|
30 | 35 | return Contains(list, str)
|
31 | 36 | }
|
32 | 37 |
|
33 | 38 | // InIntSlice see Contains
|
| 39 | +// |
34 | 40 | // Deprecated: use Contains
|
35 | 41 | func InIntSlice(list []int, i int) bool {
|
36 | 42 | return Contains(list, i)
|
37 | 43 | }
|
38 | 44 |
|
39 | 45 | // InInt64Slice see Contains
|
| 46 | +// |
40 | 47 | // Deprecated: use Contains
|
41 | 48 | func InInt64Slice(list []int64, i int64) bool {
|
42 | 49 | return Contains(list, i)
|
43 | 50 | }
|
44 | 51 |
|
45 | 52 | // RepeatString see Repeat
|
| 53 | +// |
46 | 54 | // Deprecated: use Repeat
|
47 | 55 | func RepeatString(s string, n int) (r []string) {
|
48 | 56 | return Repeat(s, n)
|
49 | 57 | }
|
50 | 58 |
|
51 | 59 | // ChooseString see Choose
|
| 60 | +// |
52 | 61 | // Deprecated: use Choose
|
53 | 62 | func ChooseString(l []string) string {
|
54 | 63 | return Choose(l)
|
55 | 64 | }
|
56 | 65 |
|
57 | 66 | // FilterString see Filter
|
| 67 | +// |
58 | 68 | // Deprecated: use Filter
|
59 | 69 | func FilterString(list []string, fun func(string) bool) []string {
|
60 | 70 | return Filter(list, fun)
|
61 | 71 | }
|
62 | 72 |
|
63 | 73 | // RemoveString see Remove
|
| 74 | +// |
64 | 75 | // Deprecated: use Remove
|
65 | 76 | func RemoveString(list []string, s string) (out []string) {
|
66 | 77 | return Remove(list, s)
|
67 | 78 | }
|
68 | 79 |
|
69 | 80 | // FilterStringEmpty see FilterEmpty
|
| 81 | +// |
70 | 82 | // Deprecated: use FilterEmpty
|
71 | 83 | func FilterStringEmpty(e string) bool {
|
72 | 84 | return FilterEmpty(e)
|
73 | 85 | }
|
74 | 86 |
|
75 | 87 | // FilterInt see Filter
|
| 88 | +// |
76 | 89 | // Deprecated: use Filter
|
77 | 90 | func FilterInt(list []int64, fun func(int64) bool) []int64 {
|
78 | 91 | return Filter(list, fun)
|
79 | 92 | }
|
80 | 93 |
|
81 | 94 | // StringMap see Map
|
| 95 | +// |
82 | 96 | // Deprecated: use Map
|
83 | 97 | func StringMap(list []string, f func(string) string) []string {
|
84 | 98 | return Map(list, f)
|
|
0 commit comments