Packet F: Bonus 20
These constructs are called higher-order if they can take these constructs as an input or output. For 10 points each:
[10e] Identify these constructs that are called “pure” if their evaluation lacks side effects. These callable blocks of code may return a value.
ANSWER: functions [or methods; or procedures; or subroutines]
[10h] Christopher Strachey proposed that programming languages should treat functions as one of these things. This two-word phrase refers to objects that can be passed into functions, output by a function, tested for equality, or assigned to a variable.
ANSWER: first-class citizens [or first-class functions; or first-class objects]
[10m] A mainstay of functional programming is this higher-order function that takes in a function and a list and applies that function to the list’s entries. An analog of this function is combined with “reduce” in a parallelized big data method.
ANSWER: map [accept MapReduce]
<GC, Other Science> | Packet F - Chicago C, McGill C, WashU A, Chicago B
| Heard | PPB | E % | M % | H % |
|---|---|---|---|---|
| 10 | 14.00 | 100% | 30% | 10% |
Conversion
| Team | Opponent | Part 1 | Part 2 | Part 3 | Total | Parts |
|---|---|---|---|---|---|---|
| Illinois A | Illinois B | 10 | 0 | 0 | 10 | E |
Summary
| Tournament | Edition | Match | Heard | PPB | E % | M % | H % |
|---|---|---|---|---|---|---|---|
| California (North) | Main Site | ✓ | 1 | 10.00 | 100% | 0% | 0% |
| Canada | Main Site | ✓ | 1 | 20.00 | 100% | 100% | 0% |
| Great Lakes | Main Site | ✓ | 1 | 10.00 | 100% | 0% | 0% |
| Midwest | Main Site | ✓ | 1 | 10.00 | 100% | 0% | 0% |
| Northeast | Main Site | ✓ | 2 | 10.00 | 100% | 0% | 0% |
| Overflow | Main Site | ✓ | 1 | 30.00 | 100% | 100% | 100% |
| Upper Mid-Atlantic | Main Site | ✓ | 2 | 10.00 | 100% | 0% | 0% |
| Upstate NY | Main Site | ✓ | 1 | 20.00 | 100% | 100% | 0% |