@ailrunAilrun (UTC-5/-4) 재밌게도 force . thunk랑 return . thunk 모두 항등 사상이 못 되네요. 이건 값이 ‘~인 것‘이기 때문일까요? ~인 것을 갖고 무언가를 더 하기 위해서 return과 to가 있는 것인가 싶어졌어요.
@domatdo도막도 그 둘이 사실 수반 함자(Adjoint Functor)의 구현입니다. 강한 형 CBPV를 사용하면
thunk(-)
는 Up -
의 생성자고 return
은 Down -
의 생성자인데요, 이 두 함자 Up
과 Down
이 수반 함자 쌍을 이룹니다.
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01963f51-7aed-781d-917b-9099ab0e5e75 on your instance and quote it. (Note that quoting is not supported in Mastodon.)