-
Notifications
You must be signed in to change notification settings - Fork 13
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
Explanation #7
Comments
Hi! I ported the types from this lib/video https://www.youtube.com/watch?v=cefnmjtAolY from edward kmett. I feel like the video is a much better explanation that i could try to type :) |
Oy. I'm lost from the very beginning... I don't know Haskell or this notation. Where should I start? |
I think this could be a good start. it has lots of ressources. It's a pretty big amount of time to invest, though. |
He did the same presentation in scala if that's more familiar. Are you good with functors already? I'd start tbere |
I'm pretty much just familiar with JS and Python... I get functors. |
@ccorcos the syntax definitely takes some getting used to. Here's how I interpret it: * not sure this interpretation is accurate enough. |
interesting. that makes sense. the periods we're throwing me off in terms of how it flows. Its also interesting how its all automatically curried in some sense. |
So you can read these sentences and understand whats going on without thinking about it for 10 minutes?
I'm not sure this makes much sense to me. For any functor, a lens takes a function (a -> f b) and an s and return f t. This is meaningless to me. How do I interpret what this function will actually do for me? |
Start with the simpler version:
or
With the example of a Which could be read as:
With the use of a If If The full version of Does that make sense? |
hmm. I think what confuses me is there's no distriction between multiple inputs, multiple outputs, and applying a functor to some arguments.
Is that the right idea? that f isnt being returned but transforming the arugments? that doesnt seem quite right though. |
Hey dude, I saw this and wanted to better understand how lenses work. The code was pretty confusing to me, so I thought I'd start with what does this mean?
I have a math background so I understand for-all. But other than that, I'm lost. Any online books or classes you'd recommend?
The text was updated successfully, but these errors were encountered: