github.com/l3x/learn-fp-go@v0.0.0-20171228022418-7639825d0b71/1-functional-fundamentals/ch02-collections/misc/function_mod.go (about) 1 package misc 2 3 import "net/http" 4 5 func main() { 6 // http.Get :: String -> JSON 7 var renderPage = curry(func(makes, models) { /* render page */ }) 8 // return <div>html with makes and models ULs</div> 9 Task.Of(renderPage).Ap(http.Get("/makes")).Ap(http.Get("/models")) 10 }