> ## Documentation Index
> Fetch the complete documentation index at: https://cantonfoundation-generated-reference-full-stack-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DA.Functor

> Reference documentation for Daml module DA.Functor.

<div class="x2mdx-ref-page x2mdx-ref-page--collection" />

<span id="module-da-functor-63823" />

<div class="x2mdx-ref-hero">
  <p class="x2mdx-ref-eyebrow">Daml module</p>

  <h1 class="x2mdx-ref-title">DA.Functor</h1>

  <p class="x2mdx-ref-summary">The Functor class is used for types that can be mapped over.</p>

  <div class="x2mdx-ref-badges">
    <span class="x2mdx-ref-badge x2mdx-ref-badge--protocol">Daml</span>

    <a class="x2mdx-ref-badge x2mdx-ref-badge--added" href="#history-added-3-4-9">Added 3.4.9</a>
  </div>

  <dl class="x2mdx-ref-meta-grid">
    <div class="x2mdx-ref-meta-item">
      <dt>Module</dt>
      <dd>DA.Functor</dd>
    </div>

    <div class="x2mdx-ref-meta-item">
      <dt>Latest release</dt>
      <dd>3.5.7</dd>
    </div>
  </dl>
</div>

## Functions

<span id="function-da-functor-dollargt-48161" />

### `$>`

`$>` : [`Functor`](/appdev/reference/daml-standard-library/prelude#class-ghc-base-functor-31205) `f` => `f` `a` -> `b` -> `f` `b`

Replace all locations in the input (on the left) with the given
value (on the right).

<span id="function-da-functor-ltampgt-91298" />

### `<&>`

`<&>` : [`Functor`](/appdev/reference/daml-standard-library/prelude#class-ghc-base-functor-31205) `f` => `f` `a` -> (`a` -> `b`) -> `f` `b`

Map a function over a functor. Given a value `as` and a function
`f`, `as <&> f` is `f <$> as`. That is, `<&>` is like `<$>` but the
arguments are in reverse order.

<span id="function-da-functor-ltdollardollargt-89503" />

### `<$$>`

`<$$>` : ([`Functor`](/appdev/reference/daml-standard-library/prelude#class-ghc-base-functor-31205) `f`, [`Functor`](/appdev/reference/daml-standard-library/prelude#class-ghc-base-functor-31205) `g`) => (`a` -> `b`) -> `g` (`f` `a`) -> `g` (`f` `b`)

Nested `<$>`.

<span id="function-da-functor-void-91123" />

### `void`

`void` : [`Functor`](/appdev/reference/daml-standard-library/prelude#class-ghc-base-functor-31205) `f` => `f` `a` -> `f` ()

Replace all the locations in the input with `()`.

## History

<div class="x2mdx-ref-history" aria-label="Reference history">
  <div class="x2mdx-ref-history-event x2mdx-ref-history-event--introduced" id="history-added-3-4-9">
    <div class="x2mdx-ref-history-event-head">
      <span class="x2mdx-ref-history-event-label">Added</span>
      <code class="x2mdx-ref-history-event-version">3.4.9</code>
    </div>
  </div>
</div>
