Hacker News new | ask | show | jobs
by TheCoelacanth 2884 days ago
It does: `s.chars().take(3)`. It just does it with iterators rather than with indexes because that better communicates the performance characteristics.