ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Lambda used with map vs. list comprehension?

It is known that these two approaches have the same functions. I would like to know if one is more efficient more than other. Please state reasons for your preference.

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2015/03/26
vinish G
من قبل vinish G , Software Engineer , Thinvent Technologies Pvt Ltd

Hi,

 

The fn's you mentioned makes your coding easier and cleaner, these are created for LISP programmers in request.

Even Guido Van Rossums prefers LIST comprehension than using these functions and me too.

 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟