Conversation
|
Hi Coury, Despite a handful of requests to expose these functions, I've been reluctant to, because so far we've always found simpler solutions using the existing higher-level functions. Would you mind sharing your use case for the functions? Thanks! Justin |
|
In the first instance, I'm creating a library called I've actually had to copy a good number of low-level function out of This above situation is not a simple matter of exposing The other codebase where we've brought |
|
You can see here how I've adapted |
|
Unless I've misunderstood, you should be able to define weekdayNumber : Weekday -> Date -> Int
weekdayNumber weekStart date =
(Date.weekdayNumber date - Date.weekdayToNumber weekStart |> modBy 7) + 1Here's an Ellie example. Is that what you're looking for? I can see why you'd want |
Hey @justinmimbs, once again thanks greatly for the fantastic libraries.
I've found myself copying these helpers in a few codebases at this point. Curious if we can just expose them?
Thanks