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

ForNext

Only Do What Only You Can Do

074. algebraic product type

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

case class Customer(id: Int, name: String, address: String)



F#

OCaml

type customer = {id:int; name:string; address:string}



Haskell

data CustomerType = Customer {
  customerId :: Integer,
  name :: String,
  address :: String }

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

inserted by FC2 system