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

Function BoolsStr

physicscompress2/physics/encoding.go:319–329  ·  view source on GitHub ↗
(a []bool)

Source from the content-addressed store, hash-verified

317}
318
319func BoolsStr(a []bool) string {
320 r := make([]byte, 0, len(a))
321 for _, v := range a {
322 if v {
323 r = append(r, '.')
324 } else {
325 r = append(r, 'X')
326 }
327 }
328 return string(r)
329}

Callers 1

SameBoolsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected