Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • URI could be function but my language would automatically cache its value the first tie its called and never recalculate it again! Commented Jun 19, 2009 at 18:16
  • That's called memoization, and is indeed a common technique in many languages. I expanded the answer a bit to talk about pure functions in more detail. Commented Jun 20, 2009 at 3:30