I want to call the function func2 from within sample function of function func1. Can someone suggest a way to achieve that?.
class A
{
public func1()
{
let sample = function()
{
//call func2... but how?
}
}
public func2()
{
}
}
Thanks in Advance
this.func2()?thisrefers to insidesample(i.e. howsampleis called).thisinside a callback?