Welcome to hypercone.com on January 6 2009.
This is an internet experiment running to monitor browsing habbits of individuals through wikipedia contents.

Anamorphism

From Wikipedia, the free encyclopedia

Jump to: navigation, search

Anamorphism is a concept from functional programming grounded in category theory. The term comes from Greek ανα- (upwards) + morphism (from Greek μορφή, or form, shape).

Contents

[edit] Anamorphisms in functional programming

In functional programming, an anamorphism is a generalization of the list-producing unfolds known from functional programming to arbitrary abstract data types that can be described as final coalgebras. Unfolds are the co-recursive analogues of recursive folds.

One of the first publications to introduce the notion of an anamorphism in the context of programming was the paper "Functional Programming with Bananas, Lenses, Envelopes and Barbed Wire", by Erik Meijer et al., which was in the context of the Squiggol programming language.

[edit] Anamorphisms in category theory

In category theory, anamorphisms are the categorical dual of catamorphisms.

[edit] Notation

A notation for ana f found in the literature is [\!(f)\!]. The brackets used are known as lens brackets, after which anamorphisms are sometimes referred to as lenses.

[edit] See also

[edit] External links

  • Erik Meijer, Maarten Fokkinga, and Ross Paterson. Functional Programming with Bananas, Lenses, Envelopes, and Barbed Wire [1], contains additional definitions and examples
Personal tools
Languages

Visit joltnews for the latest headlines
Visit bloit.com for company information
Geed Media does computer consulting on long island.
This page viewed times. See Logs