def only
import bolt@1.27.0.0/src/rules/suspicious/thunk.bend as Thunkimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
143# is a group with this open and these kids a call given exactly one lambda?
144def only(+oo: String, +kids: Tree.Node) -> Bool:
145 Bool.and(String.eq(oo, "("), Nat.is_eq(lams(kids, False{}), 1n))