dry-python / dry-python/lambdas

How to get access to args/kwargs inside lambda?

Open
#112 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
286
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Is it possible to express this kind of lambda?
`lambda a, b: a * b`

I intuitively tried this approach, but it doesn't work...
`_._1 * _._2`

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named in the issue. Start by locating the implementation and tests for placeholder-based lambda expressions, then determine whether positional and keyword arguments can be represented; done means the requested lambda form or an explicitly documented limitation is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.