GivenI calculate "data Person { name: String, age: Number, active: Boolean }"132µs
AndI calculate "team = [Person(name: "Ada", age: 36, active: true), Person(name: "Grace", age: 30, active: false)]"266µs
WhenI calculate "map(x -> x.age, team)"102µs
Thenthe result is "[36, 30]"37µs
WhenI calculate "sum(map(x -> x.age, team))"126µs
Thenthe result is "66"29µs
WhenI calculate "filter(x -> x.active, team)"93µs
Thenthe result is "[Person(name: "Ada", age: 36, active: true)]"38µs
WhenI calculate "map(Person, [{name: "Bo", age: 1, active: true}])"161µs
Thenthe result is "[Person(name: "Bo", age: 1, active: true)]"36µs