MCPcopy Create free account
hub / github.com/bitfield/ftl-code / Twice

Method Twice

19.2/mytypes.go:8–10  ·  view source on GitHub ↗

Twice multiplies its receiver by 2 and returns the result.

()

Source from the content-addressed store, hash-verified

6// Twice multiplies its receiver by 2 and returns
7// the result.
8func (i MyInt) Twice() MyInt {
9 return i * 2
10}

Callers 1

TestTwiceFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestTwiceFunction · 0.36