R:
Create a vector of random integers:
> sample(-3:5, 22, rep=TRUE) -> v
> v
[1] 5 2 -3 2 4 -1 -2 -3 -3 -1 4 4 -1 0 0 -2 -2 1 2 0 0 3
Find the indices at which v < 0:
> which(v < 0)
[1] 3 6 7 8 9 10 13 16 17
Extract the negative numbers:
> v[which(v < 0)]
[1] -3 -1 -2 -3 -3 -1 -1 -2 -2
How much easier is it in ANS Forth?
--
After being told there was no money, the attackers tore off the woman's clothes
and raped her until five others arrived, according to the documents. The new
arrivals took turns having sex with her and then sodomized her.... At gunpoint,
the assailants forced the mother and son to have sex.
www.sun-sentinel.com/local/palm-beach/sfl-flpdunbar0822nbaug22-story.html