|
NAMEData::Object::CodeABSTRACTCode Class for Perl 5SYNOPSISpackage main; use Data::Object::Code; my $code = Data::Object::Code->new(sub { $_[0] + 1 }); DESCRIPTIONThis package provides methods for manipulating code data.INHERITSThis package inherits behaviors from:Data::Object::Kind INTEGRATESThis package integrates behaviors from:Data::Object::Role::Dumpable Data::Object::Role::Proxyable Data::Object::Role::Throwable LIBRARIESThis package uses type constraints from:Data::Object::Types METHODSThis package implements the following methods:callcall(Any $arg1) : Any The call method executes and returns the result of the code.
composecompose(CodeRef $arg1, Any $arg2) : CodeLike The compose method creates a code reference which executes the first argument (another code reference) using the result from executing the code as it's argument, and returns a code reference which executes the created code reference passing it the remaining arguments when executed.
conjoinconjoin(CodeRef $arg1) : CodeLike The conjoin method creates a code reference which execute the code and the argument in a logical AND operation having the code as the lvalue and the argument as the rvalue.
currycurry(CodeRef $arg1) : CodeLike The curry method returns a code reference which executes the code passing it the arguments and any additional parameters when executed.
defineddefined() : Num The defined method returns true if the object represents a value that meets the criteria for being defined, otherwise it returns false.
disjoindisjoin(CodeRef $arg1) : CodeRef The disjoin method creates a code reference which execute the code and the argument in a logical OR operation having the code as the lvalue and the argument as the rvalue.
nextnext(Any $arg1) : Any The next method is an alias to the call method. The naming is especially useful (i.e. helps with readability) when used with closure-based iterators.
rcurryrcurry(Any $arg1) : CodeLike The rcurry method returns a code reference which executes the code passing it the any additional parameters and any arguments when executed.
AUTHORAl Newkirk, "awncorp@cpan.org"LICENSECopyright (C) 2011-2019, Al Newkirk, et al.This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file" <https://github.com/iamalnewkirk/data-object/blob/master/LICENSE>. PROJECTWiki <https://github.com/iamalnewkirk/data-object/wiki>Project <https://github.com/iamalnewkirk/data-object> Initiatives <https://github.com/iamalnewkirk/data-object/projects> Milestones <https://github.com/iamalnewkirk/data-object/milestones> Contributing <https://github.com/iamalnewkirk/data-object/blob/master/CONTRIBUTE.md> Issues <https://github.com/iamalnewkirk/data-object/issues>
Visit the GSP FreeBSD Man Page Interface. |