RosettaCodeData/Task/Introspection/E/introspection-3.e

6 lines
98 B
Plaintext

{
var sum := 0
for &x in interp.getTopScope() { sum += try { x :int } catch _ { 0 } }
sum
}