Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Apr 8, 2025

📝 Summary

  • Migrate to python3.13

    • Replace all occurrences of

      class Functor(Generic[A])

      with

      class Functor[A]

      for conciseness

  • Use fa in function signatures instead of a when fa is a Functor

  • restructure the notebook
  • replace f in the function signatures with g to indicate regular functions and distinguish from functors
  • move Maybe funtor to section More Functor instances
  • add Either functor
  • add unzip utility function for functors

📋 Checklist

  • I have included package dependencies in the notebook file using --sandbox
  • If adding a course, include a README.md
  • Keep language direct and simple.

metaboulie added 6 commits April 3, 2025 06:11
* restructure the notebook
* replace `f` in the function signatures with `g` to indicate regular functions and distinguish from functors
* move `Maybe` funtor to section `More Functor instances`
+ add `Either` functor
+ add `unzip` utility function for functors
@Haleshot
Copy link
Collaborator

@metaboulie Is this up for review or should I be waiting for more commits?

@ghost
Copy link
Author

ghost commented Apr 11, 2025

@Haleshot There are some significant changes for functors.py in the current state, and the next few commits will be subtle. I can probably finish those commits this weekend and you can review this pr next week I suppose.

@Haleshot
Copy link
Collaborator

Tracking: In relation to #51

@ghost
Copy link
Author

ghost commented Apr 16, 2025

@Haleshot This PR is stable and ready to be reviewed🥳

Copy link
Collaborator

@Haleshot Haleshot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes.

return


@app.cell(hide_code=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for unhiding this cell block?

Haleshot
Haleshot previously approved these changes Apr 18, 2025
Copy link
Collaborator

@Haleshot Haleshot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes on the whole!

métaboulie and others added 2 commits April 19, 2025 10:08
@ghost
Copy link
Author

ghost commented Apr 19, 2025

All suggestions committed, thanks for your review

Copy link
Collaborator

@Haleshot Haleshot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for great changes and for keeping this series going ❤️

@Haleshot Haleshot merged commit 8f7960d into marimo-team:main Apr 20, 2025
1 check passed
@ghost ghost deleted the fp/functors branch April 20, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant