RosettaCodeData/Task/Introspection/Lasso/introspection-2.lasso
2016-12-05 23:44:36 +01:00

15 lines
288 B
Text

var(
bloob = -26,
positive = 450
)
local(total = integer)
with v in var_keys
// Lasso creates a number of thread variables that all start with an underscore. We don't want those
where not(string(#v) -> beginswith('_')) and var(#v) -> isa(::integer)
do {
#total += var(#v)
}
#total