Logo

Programming-Idioms

History of Idiom 13 > diff from v33 to v34

Edit summary for version 34 by :
New Prolog implementation by user [Boris]

Version 33

2016-02-16, 18:28:18

Version 34

2016-02-16, 19:37:33

Idiom #13 Iterate over map keys and values

Print each key k with its value x from an associative array mymap

Idiom #13 Iterate over map keys and values

Print each key k with its value x from an associative array mymap

Code
forall(get_dict(K, D, V),
       format("~w:~w~n", [K, V]))
Doc URL
swi-prolog.org
Demo URL
http://swish.swi-prolog.org/p/UdBoXLIk.swinb