Skip to content

gryphonshafer/exact-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

exact::fun - Functions and methods with parameter lists for exact

VERSION

version 1.01

test codecov

SYNOPSIS

use exact -fun;

fun foo ( $x, $y, $z = 5 ) {
    return $x + $y + $z;
}

say foo( 1, 2 );

method bar ( $label, $n ) {
    return "$label: " . ( $n * $self->scale );
}

DESCRIPTION

exact::fun is an extension for exact that imports Function::Parameters into the calling namespace.

use exact -fun;

It can optionally include the modifiers that come with Function::Parameters.

use exact 'fun(mod)';

If instead of the modifiers that come with Function::Parameters you need to import from Class::Method::Modifiers instead, do this:

use exact 'fun(cmm)';

See the exact documentation for additional information about extensions. The intended use of exact::fun is via the extension interface of exact.

use exact -fun, -conf, -noutf8;

However, you can also use it directly, which will also use exact with default options:

use exact::fun;

SEE ALSO

You can look for additional information at:

AUTHOR

Gryphon Shafer gryphon@cpan.org

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023-2050 by Gryphon Shafer.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

About

exact::fun - Functions and methods with parameter lists for exact

Resources

Stars

Watchers

Forks

Packages

No packages published