If one generates funs in erlang, are they garbage collected? For instance to replicate a python like iterator or to read a stream, one may generate funs for every yield -- potentially a great many. The used funs are no longer required after use, so are they eventually garbage collected?
I guess that is to say, is such an object as #Fun<erl_eval.xx.yyyyyyy> an atom?