I get it now. That's pretty opaque, but I get it now. forDateRange is only used once, so you could just do this stuff inline there instead of passing in a function reference that you generated by calling an instance method.