exploring  polyglot functional programming