Title: map/reduce · Issue #5 · makisang/learn-python · GitHub
Open Graph Title: map/reduce · Issue #5 · makisang/learn-python
X Title: map/reduce · Issue #5 · makisang/learn-python
Description: map传入的第一个参数是一个函数对象,结果是一个Iterator reduce把一个函数作用于一个序列[x1, x2, x3, ...]上,而这个函数必须接收两个参数,reduce把结果继续和序列的下一个元素做累积计算,效果类似于: reduce(f, [x1, x2, x3, x4]) = f(f(f(x1, x2), x3), x4)
Open Graph Description: map传入的第一个参数是一个函数对象,结果是一个Iterator reduce把一个函数作用于一个序列[x1, x2, x3, ...]上,而这个函数必须接收两个参数,reduce把结果继续和序列的下一个元素做累积计算,效果类似于: reduce(f, [x1, x2, x3, x4]) = f(f(f(x1, x2), x3), x4)
X Description: map传入的第一个参数是一个函数对象,结果是一个Iterator reduce把一个函数作用于一个序列[x1, x2, x3, ...]上,而这个函数必须接收两个参数,reduce把结果继续和序列的下一个元素做累积计算,效果类似于: reduce(f, [x1, x2, x3, x4]) = f(f(f(x1, x2), x3), x4)
Opengraph URL: https://github.com/makisang/learn-python/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"map/reduce","articleBody":"- `map`传入的第一个参数是一个函数对象,结果是一个`Iterator`\n- `reduce`把一个函数作用于一个序列`[x1, x2, x3, ...]`上,而这个函数必须接收两个参数,`reduce`把结果继续和序列的下一个元素做累积计算,效果类似于:\n \n \u003e reduce(f, [x1, x2, x3, x4]) = f(f(f(x1, x2), x3), x4)\n","author":{"url":"https://github.com/makisang","@type":"Person","name":"makisang"},"datePublished":"2016-10-21T14:35:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/5/learn-python/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:89fe0329-b231-c530-ecb7-d57df90f98c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBEC:45970:12D0778:18612FA:697F9932 |
| html-safe-nonce | a0b74b6e177fe1c701af9f2d952457f175adab93dfd8ef37af8771df78eb9815 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkVDOjQ1OTcwOjEyRDA3Nzg6MTg2MTJGQTo2OTdGOTkzMiIsInZpc2l0b3JfaWQiOiI2MTE3NDc5MTM4NzQwNjQwMDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cabf8112418e5ba5abeb03d0a79512c879feb0b77b1b0b9e13e87493fe9d99d5 |
| hovercard-subject-tag | issue:184500968 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/makisang/learn-python/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c847b480b137c7fd71380c632a8e0a35120aa414863eceee5c5c9c678cda245/makisang/learn-python/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c847b480b137c7fd71380c632a8e0a35120aa414863eceee5c5c9c678cda245/makisang/learn-python/issues/5 |
| og:image:alt | map传入的第一个参数是一个函数对象,结果是一个Iterator reduce把一个函数作用于一个序列[x1, x2, x3, ...]上,而这个函数必须接收两个参数,reduce把结果继续和序列的下一个元素做累积计算,效果类似于: reduce(f, [x1, x2, x3, x4]) = f(f(f(x1, x2), x3), x4) |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | makisang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/makisang/learn-python git https://github.com/makisang/learn-python.git |
| octolytics-dimension-user_id | 16376280 |
| octolytics-dimension-user_login | makisang |
| octolytics-dimension-repository_id | 63069875 |
| octolytics-dimension-repository_nwo | makisang/learn-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63069875 |
| octolytics-dimension-repository_network_root_nwo | makisang/learn-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width