Cambridge Journals Online

Cambridge Journals Online
Skip to content
Journal of Functional Programming (2004), 14 : 715-725 Cambridge University Press
Copyright © 2004 Cambridge University Press
doi:10.1017/S0956796804005167
Published online by Cambridge University Press 27 Oct 2004


Functional pearls

FUNCTIONAL PEARL Composing fractals


MARK P. JONES a1
a1 Department of Computer Science & Engineering, OGI School of Science & Engineering at OHSU, 20000 NW Walker Road, Beaverton, OR 97006, USA (email: mpj@cse.ogi.edu)

Article author query
jones mp   [Google Scholar
 

Abstract

This paper describes a simple but flexible family of Haskell programs for drawing pictures of fractals such as Mandelbrot and Julia sets. Its main goal is to showcase the elegance of a compositional approach to program construction, and the benefits of a clean separation between different aspects of program behavior. Aimed at readers with relatively little experience of functional programming, the paper can be used as a tutorial on functional programming, as an overview of the Mandelbrot set, or as a motivating example for studies in computability.



back to top
Cambridge University Press