Top "Closures" questions

A closure is a first-class function that refers to (closes over) variables from the scope in which it was defined.

What is the difference between $.proxy() and bind()?

In 2009, ECMAScript 5 added a built-in bind() function which takes an object as a parameter and returns an identical function in …

javascript jquery scope closures bind
how to make a weak pointer to self in swift outside of a block

i want to make a weak pointer to self in swift like how we used to in objective-c like __weak …

swift closures block weak
How to return value from a Closure in Swift?

So I am using fabric plugin/Twitter-kit to use twitter api in my application. I want to get the image …

ios swift twitter closures twitter-fabric
"Closures are poor man's objects and vice versa" - What does this mean?

Closures are poor man's objects and vice versa. I have seen this statement at many places on the web (including …

functional-programming object oop closures
Wait for completion handler to finish - Swift

I am trying to check if UserNotifications are enabled and if not I want to throw an alert. So I …

ios swift closures grand-central-dispatch completionhandler
Difference between a lambda function and a closure (in PHP)?

Chapter 2 of "Magento PHP Developer's Guide" states: Zend Framework 2 uses 100% object-oriented code and utilizes most of the new features of …

php lambda closures php-closures
Access to Modified Closure (2)

This is an extension of question from Access to Modified Closure. I just want to verify if the following is …

c# .net resharper closures
Is there something like LINQ for Java?

Started to learn LINQ with C#. Especially LINQ to Objects and LINQ to XML. I really enjoy the power of …

java linq scala closures java-7
Can you explain closures (as they relate to Python)?

I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself …

python functional-programming closures
Self Executing functions in PHP5.3?

I was trying to borrow some programing paradigms from JS to PHP (just for fun). Is there a way of …

php lambda closures php-5.3