<commit_before>## $Id$

=head1 NAME

src/builtins/named-unary.pir - Perl6 named unary builtins

=head1 Functions

=over 4

=cut

.namespace

=item defined($x)

Returns a true value if $x is defined, and a false value otherwise.

=cut

.sub 'defined'
    .param pmc x
    $I0 = defined x
    .return ($I0)
.end


=item undefine $x

Sets $x to an undefined value

=cut

.sub 'undefine' 
    .param pmc x
    $P0 = new 'Undef'
    copy x, $P0
.end




=item rand($x)

Returns a random floating point number greater than or equal to zero and less
than $x.
<commit_msg>[rakudo] Fix trailing whitespace in named-unary.pir.<commit_after>## $Id$

=head1 NAME

src/builtins/named-unary.pir - Perl6 named unary builtins

=head1 Functions

=over 4

=cut

.namespace

=item defined($x)

Returns a true value if $x is defined, and a false value otherwise.

=cut

.sub 'defined'
    .param pmc x
    $I0 = defined x
    .return ($I0)
.end


=item undefine $x

Sets $x to an undefined value

=cut

.sub 'undefine'
    .param pmc x
    $P0 = new 'Undef'
    copy x, $P0
.end




=item rand($x)

Returns a random floating point number greater than or equal to zero and less
than $x.

{'fraction_non_alphanumeric': 0.10205831903945112, 'fraction_numerical': 0.0137221269296741, 'mean_word_length': 2.9161073825503356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3621304', 'n_tokens_mistral': 456, 'n_tokens_neox': 431, 'n_words': 169}