Ruby (programming language)
Ruby has been described as a multi-paradigm programming language: it allows procedural programming (defining functions/variables outside classes makes them part of the root, 'self' Object), with object orientation (everything is an object) or functional programming (it has anonymous functions, closures, and continuations; statements all have values, and functions return the last evaluation). It has support for introspection, reflection and metaprogramming, as well as support for interpreter-based threads. Ruby features dynamic typing, and supports parametric polymorphism.
Anonymous function
In R the anonymous functions are defined using the syntax codice_87 .
Ruby supports anonymous functions by using a syntactical structure called "block". There are two data types for blocks in Ruby. codice_88s behave similarly to closures, whereas codice_89s behave more analogous to an anonymous function. When passed to a method, a block is converted into a Proc in some circumstances.