idioms for function closures 240442