develooper Front page | perl.perl6.language | Postings from October 2010

[perl6/specs] 32511f: [S02] be more explicit about iterating sets/bags

Thread Next
From:
noreply
Date:
October 25, 2010 21:57
Subject:
[perl6/specs] 32511f: [S02] be more explicit about iterating sets/bags
Message ID:
20101026045723.0777542343@smtp1.rs.github.com
Branch: refs/heads/master
Home:   http://github.com/perl6/specs

Commit: 32511f7db34905c740ed1030a70995239f7cfb66
    http://github.com/perl6/specs/commit/32511f7db34905c740ed1030a70995239f7cfb66
Author: TimToady <larry@wall.org>
Date:   2010-10-25 (Mon, 25 Oct 2010)

Changed paths:
  M S02-bits.pod

Log Message:
-----------
[S02] be more explicit about iterating sets/bags

The intent has always been that when you use a set or bag as a list,
it behaves as a list of its keys, regardless of any underlying hash
interface it might also respond to.  You must use .pairs explicitly
to get the hash pairs out of a set or bag as a list.



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About