Skip to content

Conversation

@jasny
Copy link

@jasny jasny commented Sep 30, 2018

use Cypress\Curry as C;

$addTen = C\curry('+', 10);
echo $addTen(4); // output 14

$atLeast10 = C\curry('>=', 10);
echo $atLeast10(1) ? 'more' : 'less'; // output less
Operator types
Arithmetic Operators +, -, *, /, %, **
Bitwise Operators &, , ^, ~, <<, >>
Comparison Operators ==, ===, !=, !==, <, >, <=, >=
Logical Operators and/&&, or/∣∣, xor, !/not
String Operator .

@jasny jasny closed this by deleting the head repository May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant