Below is a code snippet which I came across in one of the blog for redux.
This snippet explains redux-thunk. But I am trying to make sense out of the weird syntax
return ({dispatch, getState}) => next => action =>{}
I tried a google search with this syntax but did not get much help. I am not understanding how next and action objects are getting their values. Can someone please help me understand what's going on here?

... => ...is always the definition of a function which takes some parameter(s) and returns something. This just happens a few times in a row here. You have a function that returns a function that takes two parameters that returns a function that takes one parameter that returns a function that takes one parameter that returns the result of a call toactionor perhapsnext.