this post was submitted on 08 Dec 2023
623 points (96.4% liked)
Programmer Humor
32714 readers
696 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think you could even get rid of the
iter()
and thecollect()
since it's a small fixed size array.Yep
[T;N]
has a direct implementation ofmap
."{:?}"
is necessary because arrays aren'tDisplay
but you could get around that by sayingbut now I'm golfing. Also
is more idiomatic I shouldn't let my Haskell get the better of me. That does use
Iterator
, not that it makes a difference here.