Better variable namings
This commit is contained in:
parent
382dcd9954
commit
986f4a83bc
@ -1,11 +1,11 @@
|
|||||||
*Socialmetrica
|
*Socialmetrica
|
||||||
periodsSince: startingDate until: endingDate
|
periodsSince: startingDate until: endingDate
|
||||||
| endings subperiodDuration |
|
| borders subperiodDuration |
|
||||||
subperiodDuration := (endingDate - startingDate) / self.
|
subperiodDuration := (endingDate - startingDate) / self.
|
||||||
endings := OrderedCollection new.
|
borders := OrderedCollection new.
|
||||||
endings add: startingDate.
|
borders add: startingDate.
|
||||||
1 to: self do: [ :i | | ending |
|
1 to: self do: [ :i | | ending |
|
||||||
ending := startingDate + (subperiodDuration * i).
|
ending := startingDate + (subperiodDuration * i).
|
||||||
endings add: ending.
|
borders add: ending.
|
||||||
].
|
].
|
||||||
^ endings
|
^ borders
|
Loading…
Reference in New Issue
Block a user