The table t
below represents four animals from the shelter:
name | sex | age | fixed | species | pounds |
---|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For each Circle of Evaluation on the left, define the corresponding Transformer on the right.
1 |
(filter t fixed=true) |
Name: Type: [sort/filter/build] Expression: |
2 |
(build-attribute t "kg" pounds/2.2) |
Name: Type: [sort/filter/build] New Attribute: Expression: |
3 |
(sort t name true) |
Name: Type: [sort/filter/build] Expression: |
4 |
(sort t name true) |
Name: Type: [sort/filter/build] Expression: |
For each Circle of Evaluation on the left, write the function notation showing the order of applying Transformers on the right. The first one has been done for you.
Circle of Evaluation | Transformers | |
---|---|---|
5 |
(sort (build-attribute t "kg" pounds/2.2) "name" true)
|
|
6 |
(sort (filter t fixed) name true)
|
|
7 |
(build-attribute (filter t sex= "female") "kg" pounds/2.2)
|
|
8 |
(filter (sort t name true) sex= "female")
|
|
9 |
(filter (filter t sex= "female") fixed)
|
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.