Araq/Nimrod — pull request #1301 by def- (2014-06-22 21:22:24+00:00)
Title: Add keepIf proc and keepIfIt template to sequtils

It's faster to filter sequences inplace, as can be seen with this:
```nimrod
var x: seq[int] = @[]
for i in 1..100_000_000:
x.add(i)

#var y = filter(x, proc(a): bool = a mod 2 == 0) # slow
#echo y[1000]
#echo y.len

keepIf(x, proc(a): bool = a mod 2 == 0) # fast
echo x[1000]
echo x.len
```

I'm not sure about the name. We can't use filter (unlike with map's two procs) because the inplace filter has the same arguments. filterDirectly is too long, removeIf (as in C++) would require negating the condition proc, which is why I chose keepIf.