Method
Twice
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. |
| 8 | func (i MyInt) Twice() MyInt { |
| 9 | return i * 2 |
| 10 | } |