function my_stdlib::get_apps () >> Array[String] { # Get all the apps running on the host $apps = [] $facts['myenc']['myapps'].each | $range, $rval | { $rval.each | $key, $val | { if $key == 'appname' { $apps = concat($apps, $val) } } } return($apps.unique) }