Пятница, 07 Декабря 2012 г. 21:53
+ в цитатник
Introduction Take a look at the following piece of code. Whats wrong with it? myAwesomeFunction = (objects) -> isGreat = false for item in objects if not item.isImportant continue if item.isGreat isGreat = true break return isGreat Does it go through all the items? No but, man, is that break on the last line easy [&]
http://feedproxy.google.com/~r/justdiscourse/browsing/~3/wmfLXJfDv8U/
Метки:
Technical Articles
coffeescript
functional programming
underscore
-
Запись понравилась
-
0
Процитировали
-
0
Сохранили
-