Logo

Programming-Idioms

History of Idiom 5 > diff from v345 to v346

Edit summary for version 346 by :
New Erlang implementation by user [elbrujohalcon]

Version 345

2015-11-18, 11:58:12

Version 346

2015-11-18, 11:58:55

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
PointAsAMap = #{x => X, y => Y}.