3 ms·
// Static err = rootEnv.DefineForeignProcedure("sprintf", fmt.Sprintf) # Runtime (let x 2 (sprintf "%d cubed is %d"
by frou_dh 10y ago
// Static
err = rootEnv.DefineForeignProcedure("sprintf", fmt.Sprintf)
# Runtime
(let x 2
(sprintf "%d cubed is %d"
x
(pow x 3)))
=> "2 cubed is 8"
- coldtea 10y agoYep, that's what I was talking about.