4 ms·
Functional folks could write that in Elixir as {:ok, end_of_november} = 3 ¦> weeks ¦> ago ¦> next_month ¦> beginning_of_month ¦> last_weekday ¦> end_of_day g
by pmontra 5y ago
Functional folks could write that in Elixir as
{:ok, end_of_november} = 3 ¦> weeks ¦> ago ¦> next_month ¦> beginning_of_month ¦> last_weekday ¦> end_of_day
given the appropriate function declarations accepting at least either a number or a DateTime or some intermediate data structure as argument.