Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2011-10-21 Thread Gregory M. Turner
- Original Message - > 18.10.2011 0:53, Andrew Pennebaker пишет: > > Does Free Pascal have anonymous functions that you can pass around, > > e.g. > > to a sort(compare : function, arr : array) function? > > > > anonymous functions = closures = lambdas are part of functional > paradigm. obje

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-20 Thread Gregory M. Turner
- Original Message - > Am 20.10.2011 21:09, schrieb Gregory M. Turner: > > > In case anyone really doesn't see the point, consider that this > > thing: > > > > http://www.youtube.com/watch?v=cYw2ewoO6c4 > > If anybody does not see why incr

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-20 Thread Gregory M. Turner
- Original Message - > Am 19.10.2011 20:23, schrieb Andrew Pennebaker: > > Practical uses for referencable anonymous functions: > > For such applications one uses procedure variables in pascal. > > > (map (lambda (x) (+ x 1)) '(1 2 3)) > > > > -> (2 3 4) [snip!] > I still don't see wh