Can Go support Curry and Partial application?

I already knew that some functions can do curry in Go, some cannot. When can I use curry in GO? Is there any examples about curry that can be used in GO. Also, does Go support partial application? Is there any examples about this.

Go does not do automatic currying. Functions can take a variable number of arguments, though, and Go has first class functions so you can do it manually: https://play.golang.org/p/hf93wGyiS_

Can Go does partial application?

Can you give me an example for partial application in GO if it can be used?

Rosettacode.org has examples of implementing partial application in a large number of programming languages including Go, and the same for currying (Go example here).

Just curious - what are the benefits of applying pure functional programming concepts to imperative languages? (Other than making the code hard to read for others.)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.