exercise: Phone version: 3 plan: 14 imports: '&clean-number' tests: |- for @($c-data[0]) { if . { is clean-number(.), |.; } else { nok clean-number(.), .; } } unit: module example: |- sub clean-number ($number is copy) is export { $number ~~ s:g/<:!Nd>//; $number ~~ /^ 1? ( [ <[2..9]> <:Nd> ** 2 ] ** 2 <:Nd> ** 4 ) $/ ?? ~$0 !! Nil; } stub: |- sub clean-number ($number) is export { }