{"id":8448,"date":"2018-09-28T09:53:01","date_gmt":"2018-09-28T09:53:01","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=8448"},"modified":"2020-07-30T14:56:36","modified_gmt":"2020-07-30T14:56:36","slug":"python-map-filter-and-reduce","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=8448","title":{"rendered":"Python Map, Filter and Reduce"},"content":{"rendered":"<p><a href=\"http:\/\/book.pythontips.com\/en\/latest\/map_filter.html\">Map, Filter and Reduce<\/a> (en)<br \/>\n<a href=\"https:\/\/www.python-kurs.eu\/lambda.php\">Lambda, filter, reduce und map<\/a> (de)<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n\r\ns= &#x5B;'   abc ', ' ee   ', 't ttt', ' q    ', 'r     ', '     t']\r\n\r\nm = map(str.strip, s)\r\nprint(f'type={type(m)}') # type=&lt;class 'map'&gt; =&gt; Unterklasse von Iterator ?!\r\n\r\n<\/pre>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/13623634\/python-3-map-function-is-not-calling-up-function\">Python 3 Map function is not Calling up function<\/a><br \/>\n<a href=\"https:\/\/docs.python.org\/3\/library\/functions.html#map\"><code>map(function, iterable, ...)<\/code><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Map, Filter and Reduce (en) Lambda, filter, reduce und map (de) s= &#x5B;&#8217; abc &#8216;, &#8216; ee &#8216;, &#8216;t ttt&#8217;, &#8216; q &#8216;, &#8216;r &#8216;, &#8216; t&#8217;] m = map(str.strip, s) print(f&#8217;type={type(m)}&#8217;) # type=&lt;class &#8216;map&#8217;&gt; =&gt; Unterklasse von Iterator ?! Python 3 Map function is not Calling up function map(function, iterable, &#8230;)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8448","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/8448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8448"}],"version-history":[{"count":3,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/8448\/revisions"}],"predecessor-version":[{"id":11277,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/8448\/revisions\/11277"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}