Hacker News new | ask | show | jobs
by mprovost 1468 days ago
That's the classic solution but blows up when using multibyte characters since rev just reads the bytes in each line in reverse.