MCPcopy Create free account
hub / github.com/araddon/qlbridge / MapFloat

Method MapFloat

value/value.go:759–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

757func (m MapIntValue) Len() int { return len(m.v) }
758func (m MapIntValue) MapInt() map[string]int64 { return m.v }
759func (m MapIntValue) MapFloat() map[string]float64 {
760 mv := make(map[string]float64, len(m.v))
761 for n, iv := range m.v {
762 mv[n] = float64(iv)
763 }
764 return mv
765}
766func (m MapIntValue) MapValue() MapValue {
767 mv := make(map[string]Value)
768 for n, val := range m.v {

Callers 1

TestMapIntValueFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMapIntValueFunction · 0.76