shugo / immutable

immutable data structures for Ruby
31 stars 0 forks source link

1.enable & sweep warnings, 2. improve API with Array #2

Closed kachick closed 12 years ago

kachick commented 12 years ago

1. 同一のテストケースを再記述している箇所があったため、これを取り除きました。 8fa22796b593dce000f4d0fa6721962482658143

これはテスト時にwarningが有効であれば防ぎ易いものであるとおもいますので、 helper内でwarningを有効化しました。 fb991ee3b29e893c5ca7b7d05bd072f39353733e

2. List等の一部APIを、Arrayに近づけました。 具体的には#each,#find等のreturn、argument調整と、#detectの追加 4be167fecc17d08848b6fc63714bf5e0f5839bee 324d14b34a0a3529ad12b588a094e45a980d0da6

また、Hashのkeyになれるよう、#eql?, #hashの追加です。 90f7c032bf74ade60da0f781e913ac056d903ff2