2 ms·
For some people, thinking in "functions" makes more sense than thinking in "algorithms". The former prefers a "declaration" of THE state. for/while loops imply
by behnamoh 3y ago
For some people, thinking in "functions" makes more sense than thinking in "algorithms".
The former prefers a "declaration" of THE state. for/while loops imply a change of state, so they're a big no here.
The latter prefers an "imperative set of steps" to go from initial state to the desired state. for/while loops make the "steps" easier here.