You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, basically you can use methods on objects in Derw as you would in TypeScript. This means you can use something like:
aString:stringaString =""someTest:booleansomeTest =let
match: any
match =
aString.match "[a-z]*"in
match == null
or do whatever you want with the match array.
If you were going to using it more often though, the way would be to create a kernel code wrapper around the regex functions to make it more like Derw (for example - not using nulls and return a Maybe instead). For more examples of kernel code, check out this repo - and the GitBook, where everything has examples of what code gets compiled to. Pull requests welcome!
Feel free to reach out to me on Twitter or Zulip if you have any other questions.
Perhaps I'm confused but without this method, does derw have the capacity to match regular expressions?
The text was updated successfully, but these errors were encountered: