Partial Application

Closures can be partially applied by passing less arguments than expected. The result is a new closure that captures the arguments passed and expects the remaining arguments.

add = func(a int, b int) int { a + b } addOne = add(1) addOne(2)

© 2024 ouzu