Skip to content

Instantly share code, notes, and snippets.

@bdavidxyz
Last active January 9, 2017 16:26
Show Gist options
  • Save bdavidxyz/fcf0c85fcf3df127a0eefd4f8b60c757 to your computer and use it in GitHub Desktop.
Save bdavidxyz/fcf0c85fcf3df127a0eefd4f8b60c757 to your computer and use it in GitHub Desktop.
// check pre-conditions
if (_(proposals).isEmpty()) return [];
if (_(proposals).isNotArrayOfString()) return [];
if (_(answers).isNotArrayOfBoolean()) return [];
if (_(answers).size() > _(proposals).size()) return [];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment