MCPcopy Create free account
hub / github.com/egonelbre/exp / BoolsStr

Function BoolsStr

physicscompress/physics/encoding.go:255–265  ·  view source on GitHub ↗
(a []bool)

Source from the content-addressed store, hash-verified

253}
254
255func BoolsStr(a []bool) string {
256 r := make([]byte, 0, len(a))
257 for _, v := range a {
258 if v {
259 r = append(r, '.')
260 } else {
261 r = append(r, 'X')
262 }
263 }
264 return string(r)
265}

Callers 1

SameBoolsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected