Extract argument from function
The aim is to see if you can do some refactoring very fast.
Start file
attr("y",function(v){return v})
End file
f=function(v){return v};
attr("y",f)
1c1,2
< attr("y",function(v){return v})
---
> f=function(v){return v};
> attr("y",f)
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
771 remaining solutions by
signing in and submitting your own entry
#772
BitLad / @BitLad -
Score: 30 -
01/31/18 @ 18:37
veeeexo<Esc>paf)<Esc>kIf=<Esc>A;<Esc>hx:w<CR>:wq<CR>
0 comments
772 active golfers, 2428 entries
Leaderboard (lowest score wins):
06/25/2014 at 08:01AM
07/06/2014 at 01:42PM
07/08/2014 at 05:27PM
07/08/2014 at 08:30PM
07/18/2014 at 03:13AM
07/20/2014 at 02:36AM
07/20/2014 at 07:12PM
07/21/2014 at 12:24PM
07/25/2014 at 01:53AM
08/04/2014 at 02:06AM
08/05/2014 at 09:55PM
08/26/2014 at 03:54PM
09/17/2014 at 01:14AM
09/23/2014 at 08:28PM
09/28/2014 at 03:14AM
10/10/2014 at 07:37PM
10/22/2014 at 03:42PM
11/15/2014 at 07:39PM
11/26/2014 at 10:30AM
12/04/2014 at 09:50PM
12/18/2014 at 04:39PM
12/31/2014 at 09:34AM
#323 - Carlos A Henríquez Q / @lagunex
01/18/2015 at 06:18PM
01/25/2015 at 01:42PM
01/28/2015 at 06:35PM
02/16/2015 at 02:55AM
02/19/2015 at 09:53PM
02/22/2015 at 01:11PM
02/26/2015 at 10:54AM
03/02/2015 at 03:33AM