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