I know this issue is on someone's plate, but i could not find a related issue.
Currently we can not iterate over strings, vectors, lists etc using pure functions. That means that functions like str::is_whitespace() can not be declared pure either, even though logically they are.