reference / lists
keep
The items of a list that pass a test: keep particles [ it.life > 0 ].
sizes = [ 5 40 12 60 8 ]big = keep sizes [ it > 10 ]print bigIt prints
[ 40 12 60 ]
How to write it
keep list [ expression ]Gives a list.
reference / lists
keepThe items of a list that pass a test: keep particles [ it.life > 0 ].
sizes = [ 5 40 12 60 8 ]big = keep sizes [ it > 10 ]print bigIt prints
[ 40 12 60 ]
keep list [ expression ]Gives a list.