Logo

Programming-Idioms

History of Idiom 5 > diff from v17 to v18

Edit summary for version 18 by :

Version 17

2015-09-03, 13:28:00

Version 18

2015-09-04, 13:25:31

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
p = [ x: 1.122, y: 7.45 ]
Doc URL
http://elixir-lang.org/getting-started/maps-and-dicts.html#keyword-lists