Hacker News new | ask | show | jobs
by frou_dh 3397 days 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"
1 comments

Yep, that's what I was talking about.