Implements the Perl 6 'form' built-in
