Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial shortcut #2

Closed
abersheeran opened this issue May 17, 2021 · 1 comment · Fixed by #6
Closed

Partial shortcut #2

abersheeran opened this issue May 17, 2021 · 1 comment · Fixed by #6
Labels
enhancement New feature or request
Projects

Comments

@abersheeran
Copy link
Owner

abersheeran commented May 17, 2021

pow(?, 2)

Convert to

(lambda p0: lambda _1: pow(_1, p0))(2)

range(?, 10, ?)

Convert to

(lambda p0: lambda _1, _2: range(_1, p0, _2))(10)

f(?, b=2)

Convert to

(lambda **p_kwargs: lambda _1: f(_1, **p_kwargs}))(b=2)

f(?)

Convert to

lambda _1: f(_1)

f(?, ?)

Convert to

lambda _1, _2: f(_1, _2)

f(*?)

Convert to

lambda _1: f(*_1)

f(**?)

Convert to

lambda _1: f(**_1)
@abersheeran abersheeran added help wanted Extra attention is needed enhancement New feature or request and removed help wanted Extra attention is needed labels May 17, 2021
@chuigda
Copy link

chuigda commented May 21, 2021

Approve

@abersheeran abersheeran added this to Done in Cool Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Cool
Done
Development

Successfully merging a pull request may close this issue.

2 participants