Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Object patterns #2

Open
yuanchuan opened this issue Jan 18, 2018 · 0 comments
Open

Object patterns #2

yuanchuan opened this issue Jan 18, 2018 · 0 comments

Comments

@yuanchuan
Copy link
Owner

TODO: Currently only the empty object is matched. Might also be possible to match other formats:

match(
  ({ x, y, z}) => x + y + z,
  ({ x }) => x * 2
) 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant