Better variable namings

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-15 08:49:20 -05:00
parent 382dcd9954
commit 986f4a83bc

View File

@ -1,11 +1,11 @@
*Socialmetrica
periodsSince: startingDate until: endingDate
| endings subperiodDuration |
| borders subperiodDuration |
subperiodDuration := (endingDate - startingDate) / self.
endings := OrderedCollection new.
endings add: startingDate.
borders := OrderedCollection new.
borders add: startingDate.
1 to: self do: [ :i | | ending |
ending := startingDate + (subperiodDuration * i).
endings add: ending.
borders add: ending.
].
^ endings
^ borders