Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counting and nesting - number of weeks #1

Open
andypalmer opened this issue Oct 14, 2020 · 0 comments
Open

counting and nesting - number of weeks #1

andypalmer opened this issue Oct 14, 2020 · 0 comments

Comments

@andypalmer
Copy link

; :week-year is still a puzzle (t-> "2017" (nest :week)) t-sequence count) => 52?

From https://en.wikipedia.org/wiki/ISO_week_date, there are 53 weeks if December 31st is a Thursday, or if December 31st is a Wednesday and it's a leap year

I tried changing the tests, but I'm not familiar enough with Clojure yet, and (t->"2017" (nest :week) t-sequence) results in an empty set.

I suspect that it requires a mappable nesting in metajoda.clj, but the combinations I tried had no effect. It might also be an ambiguity between "2017" as a year and as a week-year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant