Logo

Programming-Idioms

History of Idiom 5 > diff from v13 to v14

Edit summary for version 14 by :

Version 13

2015-08-27, 19:04:59

Version 14

2015-09-02, 15:30:40

Idiom #5 Create a 2D Point data structure

Declare a container type for two floating-point numbers x and y

Idiom #5 Create a 2D Point data structure

Declare a container type for two floating-point numbers x and y

Code
data Point = Point 
  { x :: Double
  ,  y :: Double 
  }