thank you, works perfectly. I'm really having some troubles understanding the whole std.algorithm documentation although it is a module I've had to use in nearly every single program I wrote and it's always extremely powerful.