Polymorphic Function Wrapper 多形态的函式包装器
Polymorphic Function Object Wrapper 多态函数对象包装器
wrapper function 包装函式
If you invoke a preexisting function that can throw a checked exception, you should write a wrapper function that catches and handles that exception; then, invoke the wrapper method from XSLT instead.
如果您调用一个可能抛出检查异常的已有函数,您应编写一个包装器函数,捕获并处理此类异常,然后在XSLT中调用包装器方法。
The resulting wrapper function is too long to present inline as a code example, but it seems to work pretty well.
最终得到的包装器函数由于太长而不作为内联代码例子显示,但它能够出色地执行。
Memoizing a function adds a transparent caching wrapper to the function, so that function values that have already been obtained are returned from a cache rather than being rebuilt each time.
记忆一个功能将为功能添加一个透明的缓存封装,因此已经得到的值将从缓存中返回而不是每次都重建。
应用推荐