Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just tried make a ".any" generic function for arrays, and by god :

Most languages : myArray.any((e) => true);

Delphi : AClass.any<Type>(myArray, function (e) : Boolean begin Exit(True); end);

The readability is through the roof, lol.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: