exercise: Phone version: 4 plan: 12 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 { }