People should understand the concept of looping/enumerating through things.
They might not know about specific loops (for
/while
) or about enumerating an array using a higher-order function (like each
), but the general concept of stepping through an array should be familiar.
Tracks should teach the normal idiomatic ways to loop/enumerate in their language, but do not need to be exhaustive about all the possibilities (e.g. don't bother teaching for
in Ruby).
This exercise deals with analysis on a stack of playing cards. The reference implementation (JavaScript) teaches:
- Find the index of an item in an array
- Find the index of an item matching a predicate in an array
- Test a predicate against all items in an array
- short-circuit on one true (
some
) - short-circuit on one false (
every
)
- short-circuit on one true (
Track | Exercise | Changes |
---|---|---|
JavaScript | arrays | None |
This exercise deals with looping on a stack of playing cards. The reference implementation (JavaScript) teaches:
- TBD
Track | Exercise | Changes |
---|---|---|
JavaScript | arrays | None |
This exercise deals with looping to enumerate data structures or to perform repetitive tasks. The reference implementation (Swift) teaches:
- The existence and use of for-in loops
- The existence and use of while loops
- The existence and use of repeat loops
- The existence and use of control transfer statements
- skip computation on some conditions(
continue
)
- skip computation on some conditions(
Track | Exercise | Changes |
---|---|---|
Swift | loops | None |