Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Side-by-side Nim and Go. Parent comment
That's a (simple, standard) generic implementation, Go's is limited to a single type.
Is there anything else beyond the generic type signature that makes this less readable to you?
Also, if you like, you could change that first sequence initialization to: (0..a.high).toSeq to keep it consistent with other 'method' calls.
There are no comments on this comment yet.
That's a (simple, standard) generic implementation, Go's is limited to a single type.
Is there anything else beyond the generic type signature that makes this less readable to you?
Also, if you like, you could change that first sequence initialization to: (0..a.high).toSeq to keep it consistent with other 'method' calls.