Python: Def to Lambda
LAMBDA!!!
Start file
def f(x): return x ** 2
End file
f = lambda x: x ** 2
1c1
< def f(x): return x ** 2
---
> f = lambda x: x ** 2
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock
154 remaining solutions by
signing in and submitting your own entry
#155
Tony Buranzon / @therealTbunz -
Score: 32 -
03/19/21 @ 06:29
dtfli =<Esc>llctxlambda x: <Esc>lldfx<Esc>ZZ
0 comments
#156
Derya / @dbmeral -
Score: 32 -
04/02/22 @ 12:13
dexldexr=i <Esc>llldeilambda x:<Esc>:wq<CR>
0 comments
156 active golfers, 455 entries
Leaderboard (lowest score wins):
03/03/2022 at 01:36PM
03/03/2022 at 05:27PM
03/06/2022 at 07:45AM
03/08/2022 at 03:01PM
04/22/2022 at 03:46AM
04/22/2022 at 03:55AM
05/06/2022 at 08:24AM
05/19/2022 at 01:11AM
05/24/2022 at 11:17PM
06/14/2022 at 08:14AM
06/20/2022 at 11:42PM
07/14/2022 at 05:23AM
07/26/2022 at 09:40PM
08/22/2022 at 12:15PM
09/30/2022 at 02:01AM
10/06/2022 at 08:46AM
11/08/2022 at 03:55AM
12/30/2022 at 06:57PM
03/24/2023 at 10:11PM
03/24/2023 at 11:03PM
03/31/2023 at 06:00AM
08/27/2023 at 02:45PM
10/19/2023 at 02:41PM
10/25/2023 at 07:44AM
02/25/2024 at 04:19PM
05/04/2024 at 01:03PM
05/07/2024 at 09:13AM
05/29/2024 at 12:04AM
06/28/2024 at 09:53PM
08/24/2024 at 04:40AM