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