item
to report just the language spoken in Brazil?contains
to compare "contains Brasilia" with "contains Roussef." Explain why the latter ("contains Roussef") fails.Keep
applies a test (its first input) to each item of a list (its second input), and reports a list containing only the matching items. If no items satisfy the test, keep
reports an empty list.
keep
reports {Haiti, Japan}keep
with the same list, so that your code reports only the countries from the list with names longer than 7 characters.play
scripts. Run each script a few times.