# Re: What are closures, continuations?

**URL:** <https://www.ruby-forum.com/t/re-what-are-closures-continuations/73917>\
**Category:** Ruby\
**Created:** [October 27, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/re-what-are-closures-continuations/73917 "2006-10-27T23:04:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [October 27, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/re-what-are-closures-continuations/73917/1 "2006-10-27T23:04:37Z")

</div>

From: removed\_email\_address@domain.invalid

> One more question – what are lambdas? 😉

Another name for anonymous functions - functions declared on the fly  
without assigning them to some method or top-level variable.

JavaScript example:  
// The argument to the ‘each’ method here is an anonymous function.  
myArray.each( function(i){ alert(i) } );

Ruby example:

# I’m making a brand new proc on the right side here

dir\_watcher.on\_modified = lambda{ |x| puts x }
