Beispiel #1
0
func funcBodyFromChainWord(a kit.ChainWord) kit.WordFuncBody {

	return func(m kit.Memory, args ...interface{}) (err error) {

		a.Each(func(w kit.Word) {
			_, err = w.Do(m)
		})

		return err
	}
}
Beispiel #2
0
func NewDictWordFromChainWord(c kit.ChainWord) kit.DictWord {

	return NewDictWordFromList(c.ExtractList())
}
Beispiel #3
0
func NewArrayWordFromChainWord(c kit.ChainWord) kit.ArrayWord {

	return NewArrayWordFromList(c.ExtractList())
}