haskell - Polymorphic self application -


i have example of system f plymorphism don't understand: enter image description here

if remove types remain: \f.\a.f (f a) makes no sense.

can me this? thank you!

the erased term make sense: in haskell \f -> f (f a), ordinary function applies first argument second, , again result.

the difference between \f -> <body> , \f.\a. <body> 1 of notation. if prefer, write haskell term \f -> \a -> f (f a), equivalent syntactically bit closer erased system f.

(note double not self application, \f -> f f.)


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -