glynwolf

joined 3 years ago
[–] glynwolf@tiggi.es 2 points 2 days ago (1 children)

@vk6flab Pascal was my learning language!

[–] glynwolf@tiggi.es 1 points 2 days ago (1 children)

@cows_are_underrated The simplest way I’ve found to do that is to convert the string into a Vec<char>. UTF-8 strings aren’t optimized for random access because of multi-byte chars.

To array of chars:
let c = s.chars().collect::<Vec<char>>();

And back to string:
let s = c.into_iter().collect::<String>();

 

@greymuzzle My muzzle is so grey that I only know my Pokémon from furry fan art. ;)

 

@greymuzzle This parody is just too real. I bet this song would have been a hit when I was a kid: https://tech.lgbt/@catdad/110810883649424081