StackOverflow Questions for Tag: closures

pouzzler
pouzzler

Reputation: 1834

Correct programming pattern to add methods and fields to canvas in javascript

Score: 0

Views: 153

Answers: 1

Read More
Kaveh Shahbazian
Kaveh Shahbazian

Reputation: 13523

Captured Closure (for Loop Variable) in Go

Score: 15

Views: 17564

Answers: 2

Read More
Rustam Tau
Rustam Tau

Reputation: 13

Decorator Function properties

Score: 1

Views: 43

Answers: 1

Read More
user5154504
user5154504

Reputation:

Convert an array of Ints to a comma separated string

Score: 40

Views: 36638

Answers: 1

Read More
Maurício Linhares
Maurício Linhares

Reputation: 40333

Trying to write a test with a closure in the end fails on Specs2

Score: 2

Views: 804

Answers: 2

Read More
zztkm
zztkm

Reputation: 3

Why does the weak reference upgrade to a strong reference when self defined with weak self is checked for nil in a guard statement?

Score: 0

Views: 115

Answers: 3

Read More
Ben
Ben

Reputation: 23

Lifetime error on any declared closure in body of function with higher-order trait bound and associated type

Score: 2

Views: 65

Answers: 0

Read More
Smeegol
Smeegol

Reputation: 2098

Why guard let self = self else { return } can be compiled successfully

Score: -2

Views: 130

Answers: 2

Read More
DaneSoul
DaneSoul

Reputation: 4511

How to ensure my callback function is called with a specific argument?

Score: 0

Views: 177

Answers: 2

Read More
James Baw
James Baw

Reputation: 43

Rust higher order method?

Score: 1

Views: 102

Answers: 1

Read More
user2294256
user2294256

Reputation: 1049

Why is a closure able to capture a variable declared after the closure’s definition?

Score: 3

Views: 97

Answers: 4

Read More
henessybloom
henessybloom

Reputation: 3

Breaking a strong reference cycle with an explicit 'nil' assignment

Score: 0

Views: 72

Answers: 1

Read More
NeverGiveUp161
NeverGiveUp161

Reputation: 870

Javascript Closure -Local variable nested func

Score: 0

Views: 515

Answers: 1

Read More
Marc
Marc

Reputation: 14323

How to return a parameterized code block in PowerShell

Score: 1

Views: 70

Answers: 2

Read More
FigureOfCode
FigureOfCode

Reputation: 67

In PHP, how to recurse through a Closure when the variable name holding the anonymous function is a variable-variable

Score: 0

Views: 85

Answers: 2

Read More
M.Hasnain Bangash
M.Hasnain Bangash

Reputation: 1

closure is giving me this error "Sending 'onResultFetched' risks causing data races"

Score: 0

Views: 563

Answers: 1

Read More
Tintervenor
Tintervenor

Reputation: 9

In go, is it safe to store pointer of a local variable in global map?

Score: -3

Views: 61

Answers: 1

Read More
qnilab
qnilab

Reputation: 474

Closure referencing object on which it is attached

Score: 2

Views: 46

Answers: 1

Read More
Anon Anon
Anon Anon

Reputation: 91

Why Does This Haskell Closure Keep Giving Me 'No instance for (Integral (IO t0))' Error?

Score: 2

Views: 99

Answers: 1

Read More
qnilab
qnilab

Reputation: 474

Link lifetime of captured variable with closure

Score: 0

Views: 47

Answers: 0

Read More
PreviousPage 4Next