Difference between Covariant and Variable

What is the difference between Covariant and Variable?

Covariant as an adjective is (of a functor) which preserves composition while Variable as an adjective is able to vary

Covariant

Part of speech: adjective

Definition: (Of a functor) which preserves composition

Variable

Part of speech: noun

Definition: something that is variablesomething whose value may be dictated or discovereda quantity that may assume any one of a set of valuesa symbol representing a variablea named memory location in which a program can store intermediate results and from which it can read thema variable star

Part of speech: adjective

Definition: able to varylikely to varymarked by diversity or differencehaving no fixed quantitative valuetending to deviate from a normal or recognized type

Example sentence: To be is to be the value of a variable.

We hope you now know whether to use Covariant or Variable in your sentence.

Also read

Popular Articles