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

6 lines
98 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
{
var sum := 0
for &x in interp.getTopScope() { sum += try { x :int } catch _ { 0 } }
sum
}