package sway func FindNodeByType(nodeType NodeType) func(n *Node) bool { return func(n *Node) bool { return n.Type == nodeType } }