oach as in grep().
if ( ref $filter eq 'Regexp' ) {
return List::Util::first( sub { $_ ~~ $filter }, @$self );
}
return List::Util::first( sub { $filter->() }, @$self );
}
metho
{
return @$self[int rand @$self];
}
method grep($filter) {
my @result = CORE::grep { $_ ~~ $filter } @$self;
return wantarray ? @result : \@result;
}
method popn($times) {
Carp::F
$self->_base_offset,
root => $self->_root
);
}
{
my %is_legal_filter = map {
$_ => ~~1,
} qw(
store_key store_value
fetch_key fetch_value
);
sub set_filter
{ $log .= "Cid~$stati[9]\n";
my $indata = prep($infil);
$log .= "Form~$indata~$sidnr~~load~1\n";
}
open (INFIL, "<$infil") || errLog("The file $infil couldn't be opened, abortin
e string is complemented with the id value. For ex:
$elem->SetAttributeId("TABTITLE", 3, $value) ~~ $elem->SetAttribute("TABTITLE3", $value)
But these functions are faster than the traditional func
>
Calculates the determinant of a matrix, whose LR decomposition matrix
"C<$LR_matrix>" must be given (which must be a (quadratic) matrix
returned by the method "decompose_LR()").
In fact the determ
der (called "Rang" in German) of a matrix, whose
LR decomposition matrix "C<$LR_matrix>" must be given (which must
be a (quadratic) matrix returned by the method "decompose_LR()").
This number is a m
/new()>.
=head2 redirect($url[, $status])
Interrupts the current request, and redirects to the given (external) $url, optionally setting the HTTP status to $status.
Here, the [] indicate an optiona
return $rate;
}
=head2 get_discrete_dividend_for_period
Returns discrete dividend for the given (start,end) dates and dividend recorded date for the underlying specified using `underlying_confi
al_name_piece_tags
{
my($self) = @_;
return
(
GIVN => sub{return $self -> tag_name_piece_given(shift, shift)},
NICK => sub{return $self -> tag_name_piece_nickname(shift, shift)},
NOTE =>
urns a new Reply::App instance. Takes no arguments.
=head2 run(@argv)
Parses the argument list given (typically from @ARGV), along with the user's configuration file, and attempts to start a Reply s
er[, number], {float => true})
r->random(integer[, integer])
Generate a random number between given (or implied) bounds. C<random> takes
zero, one or two arguments.
=head2 now
r->table("users")
bold; } [ ABC ]
You can repeat each of the style-patterns as much as you like:
--->
==>
=>
~~~~~>
..-..-..->
Note that in patterns longer than one character, the entire
pattern must be repeat
label: foo; } [ ABC ]
-- foo -->
... baz ...>
-- solid -->
== double ==>
.. dotted ..>
~~ wave ~~>
- dashed - >
= double-dash = >
.- dot-dash .->
..- dot-dot-dash ..->
Note that the tw
return ($File::Data::REFERENCE) ? \@ret : @ret;
}
=item xreturn
Returns the product of the given (or last) B<do()>, undef on failure.
my $o_dat = $o_dat->prepend($A)->append($b)->return('pr
plice @mailbox, $index, 1) if $mailbox[$index] ~~ @args;
}
while (1) {
my $message = _receive;
return _return_elements($message) if $message ~~ @args;
push @mailbox, $message;
}
}
els
(splice @mailbox, $index, 1) if $mailbox[$index] ~~ @args;
}
while (my $message = _receive_nb) {
return _return_elements($message) if $message ~~ @args;
push @mailbox, $message;
}
return
->[2]{source};
for (split /^/, $src->{presub1}) {
push @requires, $_ unless $_ ~~ @requires;
if (/^\s*(?:use|require|no) \s+ (\w+(?:::\w+)*)/x) {
$mods{
$@ ){
die $@ if not $dontdie;
# if a catch function is given (in context), forward the error
if ( $dontdie && $catchn ){
=head2 $rtc->nodename
The name of the device file that is used by this C<$rtc> object. This is given (or implied) by the argument passed to the C<new()> constructor.
If the C<new()> constructor is
hildren){
$chdcount = $#children;
#}
foreach my $p (@parents) {
unless ( $p ~~ %MetaCUIs ) {
$Graph{$current_node}{$p} = 'U';
$Graph{$p}{$current_node} = 'D';
#$g
n) {
if ( $#children != -1 ) {
foreach my $c (0 .. $chdcount) {
unless ( $children[$c] ~~ %MetaCUIs ) {
$Graph{$current_node}{$children[$c]} = 'D';
$Graph{$children[$c]}
}
# }
if ( $#sib != -1 ) {
foreach my $s (0 .. $sibcount) {
unless ( $sib[$s] ~~ %MetaCUIs ) {
unless(exists $Graph{$current_node}{$sib[$s]}){
$Graph{$current_
e => $value, -attr2=>'val2');
$x->_add($content);
$x->element_close;
If $content is not given (or never added with the _add method) for an
element then it will be rendered as empty. Ie, $x->b
sequence (I<O> - I<E>). Alias: C<observed_deviation>. Alternatively, the observed value might be given (as B<observed> => NUM), and so the method only has to get the expected value (as specified in L<
die "Unknown algoritm `$algo`, use one of: ".
join(", ", @known_algos) unless $algo ~~ @known_algos;
$i++;
my $func = "Locale::ID::GuessGender::FromFirstName::".