Is there any plan on supporting pattern matching for generator functions.
I would like this feature for easy creation of lazy functions acting on [x,...xs] pattern types of generators in order to use javascript in a more functional way when handling lists.
Is there any plan on supporting pattern matching for generator functions.
I would like this feature for easy creation of lazy functions acting on [x,...xs] pattern types of generators in order to use javascript in a more functional way when handling lists.
Proposed syntax:
Edit: Updated example with base case and expected result.