Archive for December, 2009

Icon key generator

Saturday, December 19th, 2009

Over at my other blog I have a post on Icon, the language.

One thing that Python did not pick up from Icon is key()

The method to obtain keys from a dictionary object in Python is keys().

The procedure in classic Icon is key(a_dict). Why key() and not keys()?

Because key() is a generator.

key() provides one key at a time.