exercise: ETL version: 1 plan: 6 imports: '&transform' tests: |- =head2 Notes =begin para The test expects your returned C to have L. Defined Cs for the values, and defined Cs for the keys. =end para for $c-data.values -> %case-set { is-deeply( transform(Hash[Array[Str:D], Int:D].new( ..pairsĀ».&{ .key.Int => Array[Str:D](.value.Slip) } )), Hash[Int:D, Str:D].new(..pairs), . ) for %case-set.values; } unit: module example: |- no precompilation; sub transform ( Hash[Array[Str:D], Int:D] $_ --> Hash[Int:D, Str:D] ) is export { Hash[Int:D, Str:D].new: .invertĀ».&{ .key.lc => .value } } stub: |- no precompilation; sub transform (%input) is export { }