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 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) |
Author
neumino
commented
Apr 23, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment