Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is like a-b, where a and b are sets, but it effectively uses a case-insensitive comparison function.
- The reason for this is that Rails/MySQL find_by is case-insensitive. So if you have a data feed where someone's changed only the case, but don't want that to actually affect anything, you can use this function to see if there's a real difference (beyond just flipping the case).
Add Comment
Please, Sign In to add comment