Use double arrows and yield for generators