logoalt Hacker News

inigyoutoday at 1:01 AM0 repliesview on HN

Is a type like "fixed-size list of 3 integers" really more useful than a type like "list of integers" plus a constraint "size must be 3"? I feel like the latter is more flexible. Does Lean have a type for "list containing only prime powers"?