Used in a Sentence

functors

Definitions, parts of speech, synonyms, and sentence examples for functors.

Editorial note

The problem is that the category-theory view of functors and monads and monoids completely dominates the literature.

Examples17
Definitions4
Parts of speech1

Quick take

(object-oriented programming) A function object.

Meaning at a glance

The clearest senses and uses of functors gathered in one view.

noun

(object-oriented programming) A function object.

noun

(grammar) A function word.

noun

(functional programming) A structure allowing a function to apply within a generic type, in a way that is conceptually similar to a functor in category theory.

Definitions

Core meanings and parts of speech for functors.

noun

(object-oriented programming) A function object.

noun

(grammar) A function word.

noun

(functional programming) A structure allowing a function to apply within a generic type, in a way that is conceptually similar to a functor in category theory.

noun

(category theory) A category homomorphism; a morphism from a source category to a target category which maps objects to objects and arrows to arrows (either covariantly or contravariantly), in such a way as to preserve morphism composition and identities.

Example sentences

1

The problem is that the category-theory view of functors and monads and monoids completely dominates the literature.

2

For OCaml: - row polymorphism (in particular polymorphic variants) - higher-order and applicative functors (not the Haskell thing).

3

Note that functors in different languages mean different things.

4

Yes, applicative code is a relatively new development in Haskell: applicative functors were discovered only in 2008.

5

I think the issue is whether the usage of applicative functors was necessary or just for the sake of being clever for no added benefit.

6

Today it is if-theory, yesterday it was categories and functors, and the day before, group representations.

7

I am guessing there are commonly accepted idioms and libraries around the use of functors, monads, applicatives, etc..

8

The pictures/diagrams in it helped me really make sense of applicatives, functors, and monads.

9

They aren't the same thing, but are very similar): alertDialog.setMessage(...).setPositiveButtonText(...).setNegativeButtonText(...).setPositiveButtonOnClickListener(...).setNegativeButtonOnClickListener(...).build().show() Functors (in OCaml) can be viewed as Java's abstract-generic-classes with dependency injection [0].

10

Want to know more about Functors and Monads (maybe even applicatives O_o)?

11

The author appears to be an experienced Haskeller, so I'm sure they're aware of applicative functors.

12

As it turns out, for Haskell and most datatype-like functors there is exactly one law abiding implementation of fmap implicit in the structure of the type.

Quote examples

1

So ML has functors (not Haskell functors, certainly certainly certainly not C++ functors) which are "parameterized modules that actually work".

2

This helps conceptualizing the mechanism, in a way that "binding of flattened functors returning null or non-null monads" doesn't.

3

You might wonder, "well why don't functors have a generic constructor", and (among other answers to that) the reason is that it doesn't serve any purpose in the functor laws.

4

So this is going to sound snarky and/or stupid at first, but: Monads are functors with a 'join' ("flatten") operation.

Proper noun examples

1

Check out Functors, Applicatives, And Monads In Pictures[3].

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use functors in a sentence?

The problem is that the category-theory view of functors and monads and monoids completely dominates the literature.

What does functors mean?

(object-oriented programming) A function object.

What part of speech is functors?

functors is commonly used as noun.