higher order functions implementing languages and structs 850665