RosettaCodeData/Task/Introspection/E/introspection-3.e
2023-07-01 13:44:08 -04:00

5 lines
98 B
Text

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