Skip to content

Instantly share code, notes, and snippets.

@francescoagati
Created June 7, 2015 22:05
Show Gist options
  • Save francescoagati/6622365c42f54570a7e0 to your computer and use it in GitHub Desktop.
Save francescoagati/6622365c42f54570a7e0 to your computer and use it in GitHub Desktop.
let.hx
return switch e {
case macro [$a{lefts}] = [$a{rights}]: processArrays(lefts,rights);
case macro [$a{lefts}] << ${right}: processObject(lefts,right);
case _:e.map(processDestructuring);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment