Jump to content

Monads/Writer monad: Difference between revisions

Line 16:
{{trans|JavaScript}}
 
 
More than a light-weight scripting language is really likely to need, but a way of stretching it a bit, and understanding its relationship to other languages. What AppleScript mainly lacks (apart from a well-developed library, and introspective records/dictionaries which know what keys/fields they have), is a coherent type of first class (and potentially anonymous) function. To get first class objects, we have to wrap 2nd class handlers in 1st class scripts.
 
<lang AppleScript>-- WRITER MONAD FOR APPLESCRIPT
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.