Last active
December 16, 2015 14:28
-
-
Save neumino/5448464 to your computer and use it in GitHub Desktop.
Checking if an array of emails contains "guest@guest.com"
This file contains hidden or 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
| r.db("foo").table("bar").filter( lamda doc: | |
| doc["emails"].map(lamda email: email == "guest@guest.com").reduce( lambda acc, val: acc | val, False) | |
| ).run(connection) |
neumino
commented
Apr 23, 2013
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment