title: Update data value in Elm
body: <p>I am trying to change object data value before reusing it.</p>
  <p>I have a data type</p>
  <pre><code>type alias Definition =
      { title : String
      , description : String
      , image : String
  
      }
  </code></pre>
  <p>-- using original data coming from API</p>
  <pre><code>    getDescription : Tag -&gt; (Definition -&gt; a) -&gt; String -&gt; Maybe Definition -&gt; Html a
      getDescription tag msg name def =
              case def of
                  Just d -&gt;
                          div [] [
                              div [] [ text d.title ]
                              , div [] [ text d.description ]
  
  -- trying to change description with removeDescription function      
                              , div [] [ newDescription (removeDescription d) ] 
  
                              ]
                  Nothing -&gt;
                      div [] [ text &quot;name&quot;]
  
  
  
  
  
  newDescription : Definition -&gt; Html a
  newDescription d =
      div [] [ 
          div[] [d.title] 
          , div[] [ d.description ]        -- trying to use new description
          ]
  </code></pre>
  <p>-- This function fails</p>
  <pre><code>removeDescription : Definition -&gt; Definition
  removeDescription d = 
          { d | d.description = '' }   -- This fails 
  </code></pre>
  <p>I have tried</p>
  <p>String.replace</p>
  <p>but it still fails</p>
  <p>Is it even possible to change data like this way considering Elm make sure data immutability ?</p>