Returning keys/values as sets/bags? taylanbayirli@xxxxxx (08 Sep 2015 15:16 UTC)
Re: Returning keys/values as sets/bags? John Cowan (08 Sep 2015 16:59 UTC)
Re: Returning keys/values as sets/bags? taylanbayirli@xxxxxx (08 Sep 2015 17:16 UTC)

Re: Returning keys/values as sets/bags? John Cowan 08 Sep 2015 16:59 UTC

Taylan Ulrich Bayırlı/Kammer scripsit:

> It makes "logical" sense to return the keys and values from
> hash-table-keys and hash-table-values as sets and bags respectively,
> since they have no order.

It would be logical.  But, erm, the sample implementation of SRFI 113
presumes hash tables.  So ....

> Or maybe you don't want to intermingle your APIs *that* much (keep
> dependency limited to SRFI-114)

(grabs any excuse for cover) ... Sure.

--
John Cowan          http://www.ccil.org/~cowan        xxxxxx@ccil.org
Objective consideration of contemporary phenomena compel the conclusion
that optimum or inadequate performance in the trend of competitive
activities exhibits no tendency to be commensurate with innate capacity,
but that a considerable element of the unpredictable must invariably be
taken into account. --Ecclesiastes 9:11, Orwell/Brown version