def

func:eachDay

eachDay(dates, fn)

Iterate the days of a span. The dates argument may be any object converted into a date range by toDateSpan(). The given function is called with a Date argument for each iterated day.

Example:

f: day => echo(day)
eachDay(2010-07-01..2010-07-03, f) >> iterate Jul 1st, 2nd, 3rd
eachDay(2010-07, f)                >> iterate each day of July 2010
eachDay(pastWeek, f)               >> iterate last 7 days

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function