Exemple #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
	}
}
Exemple #2
0
func NewDictWordFromChainWord(c kit.ChainWord) kit.DictWord {

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

	return NewArrayWordFromList(c.ExtractList())
}