ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "Юрий Соколов" <funny.falcon@gmail.com>
To: Ruby developers <ruby-core@ruby-lang.org>
Subject: [ruby-core:71328] Re: [Ruby trunk - Feature #10984] Hash#contain? to check whether hash contains other hash
Date: Wed, 4 Nov 2015 06:39:57 +0300	[thread overview]
Message-ID: <CAL-rCA3oF7z4UHZvBHOLYfcd189JsoZMHozHsJM5y-QYHSZVBw@mail.gmail.com> (raw)
In-Reply-To: <redmine.journal-54696.20151103233800.f706f7eac3bb3cb9@ruby-lang.org>

[-- Attachment #1: Type: text/plain, Size: 145 bytes --]

What if

```
{b: 1} === {a: 2, b: 1}
```

then

```
h = {a: 2, b: 1}
case h
when {b: 1}
  puts "got it"
end
```
😁😃😄😈

[-- Attachment #2: Type: text/html, Size: 254 bytes --]

  reply	other threads:[~2015-11-04  3:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-10984.20150319140059@ruby-lang.org>
2015-03-19 14:01 ` [ruby-core:68561] [Ruby trunk - Feature #10984] [Open] Hash#contain? to check whether hash contains other hash hi
2015-03-19 14:11 ` [ruby-core:68562] [Ruby trunk - Feature #10984] " sferik
2015-03-19 14:20 ` [ruby-core:68563] " hi
2015-03-21 23:45 ` [ruby-core:68595] " shevegen
2015-08-18  4:30 ` [ruby-core:70444] " hi
2015-11-03 23:38 ` [ruby-core:71321] " hi
2015-11-04  3:39   ` Юрий Соколов [this message]
2015-11-09  8:56 ` [ruby-core:71407] " matz
2015-11-09  8:57 ` [ruby-core:71408] " ko1
2015-11-09 15:06 ` [ruby-core:71419] " hi
2015-11-10  3:30 ` [ruby-core:71426] " nobu
2015-11-10  3:45 ` [ruby-core:71427] " akr
2015-11-11  5:33 ` [ruby-core:71440] " akr
2015-11-17 23:13 ` [ruby-core:71529] " prijutme4ty
2015-11-17 23:54 ` [ruby-core:71534] " hi
2015-11-18  0:59 ` [ruby-core:71536] " prijutme4ty
2015-11-19  1:38 ` [ruby-core:71569] [Ruby trunk - Bug " prijutme4ty
2015-11-19  8:57 ` [ruby-core:71580] " nobu
2015-11-20 15:34 ` [ruby-core:71609] " from-ruby-lang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL-rCA3oF7z4UHZvBHOLYfcd189JsoZMHozHsJM5y-QYHSZVBw@mail.gmail.com \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).