Program synthesis is just magical. The next version of https://github.com/Wilfred/suggest.el will support nested functions. E.g. searching 0 => 3 here.