@domatdo도막도 그 둘이 사실 수반 함자(Adjoint Functor)의 구현입니다. 강한 형 CBPV를 사용하면
thunk(-)
는 Up -
의 생성자고 return
은 Down -
의 생성자인데요, 이 두 함자 Up
과 Down
이 수반 함자 쌍을 이룹니다.
@domatdo도막도 다른 말로는
Up (Down a)
는 모나드(Monad)고 Down (Up a)
는 코모나드(Comonad)가 되는데요, 이를 이용해 CBPV는 Effect 또한 자연스럽게 다룰 수 있습니다. 글에서 다루기에는 소개할 내용이 많아서 생략했지만요.
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01963f58-f7be-74de-83b8-0f217dce7da4 on your instance and quote it. (Note that quoting is not supported in Mastodon.)