Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List comprehension for map operation #585

Closed
raviqqe opened this issue Dec 24, 2021 · 0 comments · Fixed by #640
Closed

List comprehension for map operation #585

raviqqe opened this issue Dec 24, 2021 · 0 comments · Fixed by #640
Labels
enhancement New feature or request

Comments

@raviqqe
Copy link
Contributor

raviqqe commented Dec 24, 2021

Problem

  • It's redundant to write map operations every time.
  • It's one of the most common patterns in functional programming.

Solution

@raviqqe raviqqe added the enhancement New feature or request label Dec 24, 2021
@raviqqe raviqqe mentioned this issue Jan 17, 2022
1 task
@mergify mergify bot closed this as completed in #640 Jan 21, 2022
github-actions bot pushed a commit that referenced this issue May 8, 2024
Bumps [petgraph](https://github.com/petgraph/petgraph) from 0.6.4 to
0.6.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/petgraph/petgraph/blob/master/RELEASES.rst">petgraph's
changelog</a>.</em></p>
<blockquote>
<h1>Version 0.6.5 (2024-05-06)</h1>
<ul>
<li>Add rayon support for <code>GraphMap</code>
(<code>[#573](https://github.com/petgraph/petgraph/issues/573)</code><em>,
<code>[#615](https://github.com/petgraph/petgraph/issues/615)</code></em>)</li>
<li>Add <code>Topo::with_initials</code> method
(<code>[#585](https://github.com/petgraph/petgraph/issues/585)</code>_)</li>
<li>Add logo to the project
(<code>[#598](https://github.com/petgraph/petgraph/issues/598)</code>_)</li>
<li>Add Ford-Fulkerson algorithm
(<code>[#640](https://github.com/petgraph/petgraph/issues/640)</code>_)</li>
<li>Update <code>itertools</code> to 0.12.1
(<code>[#628](https://github.com/petgraph/petgraph/issues/628)</code>_)</li>
<li>Update <code>GraphMap</code> to allow custom hash functions
(<code>[#623](https://github.com/petgraph/petgraph/issues/623)</code>_)</li>
<li>Fix documentation
(<code>[#630](https://github.com/petgraph/petgraph/issues/630)</code>_)</li>
<li>Fix clippy warnings
(<code>[#627](https://github.com/petgraph/petgraph/issues/627)</code>_)</li>
<li>(internal) Fix remove old <code>copyclone</code> macro
(<code>[#601](https://github.com/petgraph/petgraph/issues/601)</code>_)</li>
<li>(internal) Move minimum spanning tree into own module
(<code>[#624](https://github.com/petgraph/petgraph/issues/624)</code>_)</li>
</ul>
<p>..
_<code>[#573](https://github.com/petgraph/petgraph/issues/573)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/573">petgraph/petgraph#573</a>
..
_<code>[#615](https://github.com/petgraph/petgraph/issues/615)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/615">petgraph/petgraph#615</a>
..
_<code>[#585](https://github.com/petgraph/petgraph/issues/585)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/585">petgraph/petgraph#585</a>
..
_<code>[#598](https://github.com/petgraph/petgraph/issues/598)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/598">petgraph/petgraph#598</a>
..
_<code>[#640](https://github.com/petgraph/petgraph/issues/640)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/640">petgraph/petgraph#640</a>
..
_<code>[#628](https://github.com/petgraph/petgraph/issues/628)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/628">petgraph/petgraph#628</a>
..
_<code>[#623](https://github.com/petgraph/petgraph/issues/623)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/623">petgraph/petgraph#623</a>
..
_<code>[#630](https://github.com/petgraph/petgraph/issues/630)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/630">petgraph/petgraph#630</a>
..
_<code>[#627](https://github.com/petgraph/petgraph/issues/627)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/627">petgraph/petgraph#627</a>
..
_<code>[#601](https://github.com/petgraph/petgraph/issues/601)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/601">petgraph/petgraph#601</a>
..
_<code>[#624](https://github.com/petgraph/petgraph/issues/624)</code>:
<a
href="https://redirect.github.com/petgraph/petgraph/pull/624">petgraph/petgraph#624</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/petgraph/petgraph/commit/c32a86b1b8c5c198079efc9149ea2fcf956b8f6c"><code>c32a86b</code></a>
Release <code>0.6.5</code> (<a
href="https://redirect.github.com/petgraph/petgraph/issues/644">#644</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/da2e4280362a89f5ea07baf536a823cdbb9eb36c"><code>da2e428</code></a>
Ford Fulkerson algorithm support. (<a
href="https://redirect.github.com/petgraph/petgraph/issues/640">#640</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/561c4766a0e8b34ee5331d11d047154006ede5d7"><code>561c476</code></a>
Chore: Minor - Bumped actions/checkout to version 4. (<a
href="https://redirect.github.com/petgraph/petgraph/issues/631">#631</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/5b2d8da71efe7b9cb0a1a9487601ed99653cd4cd"><code>5b2d8da</code></a>
Minor: Cargo doc fixup. (<a
href="https://redirect.github.com/petgraph/petgraph/issues/630">#630</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/5cabfe3e569bebc90221c7eb3832b26630bb1417"><code>5cabfe3</code></a>
Fixed clippy warnings (<a
href="https://redirect.github.com/petgraph/petgraph/issues/627">#627</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/3361e0493397604704ea275ffdcdad5fc4044107"><code>3361e04</code></a>
chore: bumped itertools to 0.12.1. (<a
href="https://redirect.github.com/petgraph/petgraph/issues/628">#628</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/08b0ad9286f3bd4e2b31c2e3ffaf6a49983bbb87"><code>08b0ad9</code></a>
Move Minimum Spanning Tree Algorithm to its own module (<a
href="https://redirect.github.com/petgraph/petgraph/issues/624">#624</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/4678de4985d0ccaec2f6bfc4901e0b3f0623ab7f"><code>4678de4</code></a>
Page rank algorithm support (<a
href="https://redirect.github.com/petgraph/petgraph/issues/623">#623</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/c71f6e4aa12d7b9ccd0dbe53f62bcdee35a6d703"><code>c71f6e4</code></a>
Allow alternative hash functions in GraphMap (<a
href="https://redirect.github.com/petgraph/petgraph/issues/622">#622</a>)</li>
<li><a
href="https://github.com/petgraph/petgraph/commit/e219ecfad287f676071b760ce5fbad4620754640"><code>e219ecf</code></a>
Use <code>IndexMap::get_index_of</code></li>
<li>Additional commits viewable in <a
href="https://github.com/petgraph/petgraph/compare/petgraph@v0.6.4...petgraph@v0.6.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=petgraph&package-manager=cargo&previous-version=0.6.4&new-version=0.6.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant