The table t
below represents four animals from the shelter:
name | sex | age | fixed | pounds |
---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following Transformers are created and saved:
transform-kilos | filter-is-fixed | build-is-old | filter-is-young |
---|
Match each Circle of Evaluation (left) to the description of what it does (right).
(sort t "age" ascending)
|
1 |
A |
Produces a table containing only Toggle and Maple |
|
(filter t "fixed" =true)
|
2 |
B |
Produces a table of only young, fixed animals |
|
(build-column t "elderly" age>10)
|
3 |
C |
Produces a table, sorted youngest-to-oldest |
|
(filter t "age" <4)
|
4 |
D |
Produces a table with an extra column, named "elderly" |
|
(filter (filter t "age" <4) "fixed" =true)
|
5 |
E |
Produces a table containing Maple and Toggle, in that order |
|
(sort (filter t "age" <4) "pounds" descending)
|
6 |
F |
Produces a table containing the same four animals |
|
(sort (build-column t "old" age>10) "age" ascending)
|
7 |
G |
Won’t run: will produce an error (if so, why?) |
|
(sort t "sex" descending)
|
8 |
H |
Produces a table with an extra "old" column, sorted youngest-to-oldest |
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.