Created
June 21, 2018 05:35
-
-
Save inopinatus/3793ffddc1b1ab7fa76f003151f775ce to your computer and use it in GitHub Desktop.
Cheap lookups with Hash#to_proc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[:foo, :bar].map(&{ bar: "BAZ", foo: "QUUX" }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment