4 ms·
Well, that's the beauty: however you define "between", once you have it, you can just say "if between(...)" and it becomes very readable. If you want, you can
by calinet6 14y ago
Well, that's the beauty: however you define "between", once you have it, you can just say "if between(...)" and it becomes very readable.
If you want, you can subdivide this further and more clearly define the concepts used in the between function. But we don't generally choose to do that if the result is already a scant 5 lines.
Point: you should also take into account good modular design, something you have control over.