home > 比較編 > JavaScript, Lua, Io > functions >

ForNext

Only Do What Only You Can Do

102. lambda declaration

JavaScript

sqr = function(x) { return x*x; }

Lua

sqr = function(x) return x*x end

Io

all functions are lambdas:
sqr := block(x, x*x)

VBScript

Perl

PHP

Python

Ruby

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system