Steven Haryanto > Perinci-Sub-Property-curry > Perinci::Sub::Property::curry

Download:
Perinci-Sub-Property-curry-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Perinci::Sub::Property::curry - Set arguments for function

VERSION ^

version 0.04

SYNOPSIS ^

 # in function metadata
 args  => {a=>{}, b=>{}, c=>{}},
 curry => {a=>10},

 # when calling function
 f();             # equivalent to f(a=>10)
 f(b=>20, c=>30); # equivalent to f(a=>10, b=>20, c=>30)
 f(a=>5, b=>20);  # error, a has been set by curry

DESCRIPTION ^

This property sets arguments for function.

SEE ALSO ^

Perinci

DESCRIPTION ^

This module has Rinci metadata.

FUNCTIONS ^

None are exported by default, but they are exportable.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: