Example #1
0
func NewBoolWord(b bool) kit.BoolWord {

	return &boolWord{
		word: word{wordType: TBoolWord, author: author.NewPreludeAuthor()},
		b:    b,
	}
}
Example #2
0
File: word_func.go Project: mk2/yon
func NewPreludeFuncWord(name string, body kit.WordFuncBody) kit.FuncWord {

	return NewFuncWord(name, author.NewPreludeAuthor(), body)
}
Example #3
0
File: word_nil.go Project: mk2/yon
func NewNilWord() kit.Word {

	return &nilWord{
		word: word{wordType: TNilWord, author: author.NewPreludeAuthor()},
	}
}