Icon key generator

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.

Leave a Reply

You must be logged in to post a comment.