MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Strings

Function Strings

IceFireDB-PubSub/test/proto/types.go:60–69  ·  view source on GitHub ↗

Strings is a helper to build 1 dimensional string arrays.

(args ...string)

Source from the content-addressed store, hash-verified

58
59// Strings is a helper to build 1 dimensional string arrays.
60func Strings(args ...string) string {
61 var strings []string
62
63 // sort.Strings(args)
64 for _, a := range args {
65 strings = append(strings, String(a))
66 }
67
68 return Array(strings...)
69}
70
71// Ints is a helper to build 1 dimensional int arrays.
72func Ints(args ...int) string {

Callers 15

TestSaddFunction · 0.92
TestSrandmemberFunction · 0.92
TestSscanFunction · 0.92
TestSortedSetRangeFunction · 0.92
TestIssue10Function · 0.92
TestSortedSetRangeByLexFunction · 0.92
TestSortedSetPopMinFunction · 0.92
TestSortedSetPopMaxFunction · 0.92
TestLpushFunction · 0.92

Calls 2

StringFunction · 0.70
ArrayFunction · 0.70

Tested by 15

TestSaddFunction · 0.74
TestSrandmemberFunction · 0.74
TestSscanFunction · 0.74
TestSortedSetRangeFunction · 0.74
TestIssue10Function · 0.74
TestSortedSetRangeByLexFunction · 0.74
TestSortedSetPopMinFunction · 0.74
TestSortedSetPopMaxFunction · 0.74
TestLpushFunction · 0.74