Better handling of the result of find_repl method (generator or just a view)