Skip to content

Instantly share code, notes, and snippets.

@bdavidxyz
Last active January 9, 2017 16:26
Show Gist options
  • Save bdavidxyz/b7488c92e7275216b5bfcef426820158 to your computer and use it in GitHub Desktop.
Save bdavidxyz/b7488c92e7275216b5bfcef426820158 to your computer and use it in GitHub Desktop.
/*
* Example :
* => Input :
* proposals : ['is sky red ?' , 'is sun red ?' , 'is grass red ?' , 'is cloud red ?']
* => Input :
* userAnswers : [false, true]
*
* WARNING : only first(s) userAnswers are given,
* all others have implicitly the boolean value "false"
*
* => Output :
* [['is sky red ?', false],
* ['is sun red ?', true],
* ['is grass red ?', false],
* ['are clouds red ?' false]]
*/
function labeledCheckboxes (proposals, answers) {
// etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment