内置辅助函数
有几个新的辅助函数被提出来定位问题和冲突。
替换 _|_:
error来启动用户定义消息isconcrete和exist来测试或比较
验证器:
must(expr)passes ifexprevaluates totrueand fails otherwisenot(expr)passes if unified with a valuexfor whichexpr&xfails andfalseotherwise.numexist(count, ...expr)passes if the number of expressions for whichexists(x)evaluates totrueunifies withcount.numconcrete(count, ...expr)passes if the number of expressions for whichisconcrete(x)evaluates totrueunifies withcount.numvalid(count, ...expr)passes if the number of expressions for whichisvalid(x)evaluates totrueunifies withcount.
其他:
manifest(x)evaluatesxstripping it of any optional fields and definitions and disambiguating disjunctions after their removal.range(from, to, by)creates a stream of values like found in other languageshead([...])returns the first element of a list- Package
stdwould namespace all core builtins under thestdpackage name.
可以通过 core builtin extensions 查看更多细节。