Logo

Programming-Idioms

History of Idiom 172 > diff from v17 to v18

Edit summary for version 18 by senfoel:
New Haskell implementation by user [senfoel]

Version 17

2020-01-01, 22:02:02

Version 18

2020-01-06, 12:05:18

Idiom #172 Insert entry in map

Insert value v for key k in map m.

Idiom #172 Insert entry in map

Insert value v for key k in map m.

Extra Keywords
associative
Extra Keywords
associative
Imports
import qualified Data.Map as Map
Code
newM = Map.insert v k m
Comments bubble
This creates a new Map