Open the Commutativity and Associativity Starter File, which you will use to investigate three functions:
|
|
For each function, draw a second Circle of Evaluation that changes the order of the arguments. Translate the Circles of Evaluation to code, then sketch the image that you think your Circle will return. Finally, test your code in Pyret.
Is beside
Commutative?
Circle of Evaluation |
(beside aqua-star orange-dot) |
|
Code |
|
|
Sketch |
1 Did both expressions produce identical images in WeScheme? Is the beside
function commutative or not?
Is above
Commutative?
Circle of Evaluation |
(above purple-square orange-dot) |
|
Code |
|
|
Sketch |
2 Did both expressions produce identical images in WeScheme? Is the beside
function commutative or not?
Is overlay
Commutative?
Circle of Evaluation |
(overlay white-dot yellow-rect) |
|
Code |
|
|
Sketch |
3 Did both expressions produce identical images in WeScheme? Is the beside
function commutative or not?
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.