What about something like this? fn repeat n args { let ( count= ) { while { ! ~ $#count n } { $args count = $count x } } }