trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
151 stars 49 forks source link

`include` op to return results from evaluated sub-script #684

Closed luketpeterson closed 6 months ago

luketpeterson commented 6 months ago

This is a change requested by @TeamSPoon to match behavior of the old import op. With this change, the include op will return the last result from evaluating the sub-script.

vsbogd commented 6 months ago

@luketpeterson , please change type() method as well.

luketpeterson commented 6 months ago

Ah. Oops. Thanks for catching that.