#cp.fn.args
Functions for working with function arguments.
#API Overview
Functions - API calls offered directly by the extension
#API Documentation
#Functions
Signature | cp.fn.args.from(index) -> function(...) -> ... |
Type | Function |
Description | Returns a function that selects the arguments from the provided index. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/fn/args.lua line 32 |
Signature | cp.fn.args.hasAny(...) -> boolean |
Type | Function |
Description | Returns true if any of the arguments are not nil . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/fn/args.lua line 112 |
Signature | cp.fn.args.hasNone(...) -> boolean |
Type | Function |
Description | Returns true if all the arguments are nil . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/fn/args.lua line 93 |
Signature | cp.fn.args.only(index, ...) -> function(...) -> any |
Type | Function |
Description | Returns a function that only returns the argument at the specified index. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/fn/args.lua line 9 |
Signature | cp.fn.args.pack(...) -> table, boolean |
Type | Function |
Description | Packs the arguments into a table. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/fn/args.lua line 47 |
Signature | cp.fn.args.unpack(args, packed) -> ... | table |
Type | Function |
Description | Unpacks the arguments from a table. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/fn/args.lua line 72 |