Better HN
topnewbestaskshowjobs
Log inSign up

nokko

1 karma · joined Feb 9, 2021 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

I mean, if you're comfortable with `functools.partial`, lambdas are no great stretch:

  greet_fstring = partial(lambda _,s: f"hello {s}", greeting)