Great article! I'm a bit mystified by the compose argument order... Why is it that way? Intuitively it would make more sense if it was R.compose(rowLens, parkingLens). Since rowLens' getter should be the last to be called.
I am actually in the same boat. This post on Reddit does a good job of explaining why the composition order is the way it is. Despite that post, I still have a hard time conceptualizing this idea.
Great article! I'm a bit mystified by the compose argument order... Why is it that way? Intuitively it would make more sense if it was R.compose(rowLens, parkingLens). Since rowLens' getter should be the last to be called.
Thanks for reading!
I am actually in the same boat. This post on Reddit does a good job of explaining why the composition order is the way it is. Despite that post, I still have a hard time conceptualizing this idea.
Thanks, glad to know I'm not crazy :)