home > 比較編 > F#, Scala, Haskell > data types >

ForNext

Only Do What Only You Can Do

078. type constructor with tuple argument

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

class IntPair(a: Int, b: Int)
val x = new IntPair(7,11)

F#

OCaml

type int_pair = IntPair of int * int;;
let y = IntPair ( 7, 11 );;

Haskell

data IntPairType = IntPair Integer Integer
y = IntPair 7 11

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

inserted by FC2 system