### ----------------------------------------------------
### -- IO::Prompter
### -- Licenses: 
### -- Authors: 
### -- File: demo_IO_Prompter_number.p6
### ----------------------------------------------------
#! /Users/damian/bin/rakudo'
use v6;

use IO::Prompter;

while prompt("Weight:", :number, :default(42),
             :must({'be greater than 0' => {$_ > 0}})
) -> $input {
    say "Got [$input]";
}




