higher order functions implementing languages and structs 9474974