hit a speedbump. maximum and minimum are max & min absolutely!
Projecting flattened dates out to both infinities is prohibitively wacky. Do I pick arbitrary maximum and minimum dates? Should I forgo premature projection, in lieu of on-demand processing? a combination of both? Those are my leading choices atm.
This commit is contained in:
@@ -11,3 +11,10 @@ project(Rule=#rule{from=F, to=only}) ->
|
||||
not_done;
|
||||
project(Rule=#rule{from=F, to=T}) ->
|
||||
Dates= lists:map(fun(Y)-> ezic_date:for(Rule, Y) end, lists:seq(F, T)).
|
||||
|
||||
|
||||
% returns all the years inbetween
|
||||
years(_, Rule=#rule{from=F, to=only}) ->
|
||||
[F];
|
||||
years(Max, Rule=#rule{from=F, to=maximum}) ->
|
||||
fudge.
|
||||
|
||||
Reference in New Issue
Block a user