This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We're given this function | |
x = (y=>y)(y,y=x) | |
// It assignes something to x | |
// y => y is an arrow function with implicit return | |
// implicit return means that the "function body" is just an expression that we return | |
// We can write y => y like this | |
y => { | |
return y; | |
} | |
// So we can turn our arrow function to a classic named function like this: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; how to write scripts: http://www.autohotkey.com/docs/ | |
#IfWinActive ahk_class CabinetWClass ; File Explorer | |
^Backspace:: | |
#IfWinActive ahk_class Notepad | |
^Backspace:: | |
Send ^+{Left}{Backspace} | |
#IfWinActive | |
; source and context: http://superuser.com/a/636973/124606 |