So I'm trying to get a bit better with CS concepts. Going over the concept of currying. This seems to be pretty similar to what is going on with redux/react when you connect. Is it correct to call this currying? If I understand correctly, connect returns a second function which then takes App as an argument.... that's currying, right?
(Take pity on me, I'm trying to understand the concept)
const mapStateToProps = state => ({
results: state.results ? state.results.items : []
});
export default connect(mapStateToProps)(App);