elmcraft / core-extra

Utility functions for an improved experience with elm/core
https://package.elm-lang.org/packages/elmcraft/core-extra/latest/
Other
23 stars 11 forks source link

Improve String.Extra regex handling #28

Closed Janiczek closed 1 year ago

Janiczek commented 1 year ago

TL;DR: put regexFromString invocations in the String.Extra module to top-level, making them only evaluated once instead of on every function invocation.

For bonus points, optimize the regexFromString function itself (use lambda instead of >>)


From Slack:

Screenshot 2023-09-19 at 4 54 49 PM

I can't promise much but I'll try to get around to actually implementing this change.