# Is there a function Fixup\[\]?

**URL:** <https://community.wolfram.com/t/is-there-a-function-fixup/2552>\
**Category:** Questions\
**Tags:** demonstrations\
**Created:** [July 6, 2014, 5:22pm UTC](https://community.wolfram.com/t/is-there-a-function-fixup/2552 "2014-07-06T17:22:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![betseygogo](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@betseygogo](https://community.wolfram.com/u/betseygogo)\
**Post date:** [July 6, 2014, 5:22pm UTC](https://community.wolfram.com/t/is-there-a-function-fixup/2552/1 "2014-07-06T17:22:30Z")

</div>

In the source code for the CDF demonstration on Fractal Curves, Roman Maeder uses a statement tt=Fixup[t]. Mathematica accepts this statement but I cannot find any documentation on the ?Function? The source is as follows:

```
SetAttributes[Curve, Flat]
Curve /: r_c _Curve := r # & /@ c
simplify[c_Curve] := 
 c //. {Curve[Turn[r1_], Turn[r2_]] :> Curve[Turn[r1 + r2]], 
   Curve[Turn[[Angle]_ /; [Angle] == 0.0]] :> Curve[]}
Iterate[c_Curve, template_Curve] := c /. Move[l_] :> l template
Iterate[c_Curve, template : {__Curve}] := 
 c /. Move[l_, n_: 1] :> l template[[n]]
Move /: l_Move[l1, args___] := Move[l l1, args]
Turn /: l_Turn[a_] := Turn[a]
Fractal[c_Curve, t_, n_Integer ?NonNegative] := 
 With[{tt = Fixup[t]}, Nest[Iterate[#, tt] &, c, n]]
Manipulate[examples; 
 Graphics[Fractal[ex[[1]], ex[[2]], n], 
  ImageSize -> {450, 400}], {{n, 3, "iterations"}, 0, 5, 1, 
  Appearance -> "Labeled"}, {{ex, examples[[1]], "replacement curves",
    ControlType -> SetterBar}, 
  Thread[examples -> {Graphics[Fractal[#[[1]], #[[2]], 1], 
        ImageSize -> {70, 70}] & /@ examples}], 
  ControlType -> SetterBar}, SaveDefinitions -> True]

```

and I get an error in the Fractal function call that I am trying to understand.

The CDF runs fine.

---

<div class="post-metadata">

**Author:** ![dreiss](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dreiss/32/29094_2.png) [@dreiss](https://community.wolfram.com/u/dreiss)\
**Post date:** [July 6, 2014, 8:17pm UTC](https://community.wolfram.com/t/is-there-a-function-fixup/2552/2 "2014-07-06T20:17:33Z")

</div>

If you download the “Author Code” from the link in the upper right hand side of

[http://demonstrations.wolfram.com/FractalCurves/](http://demonstrations.wolfram.com/FractalCurves/)

or use this link (which is the link from that page)

[http://demonstrations.wolfram.com/downloadauthornb.cgi?name=FractalCurves](http://demonstrations.wolfram.com/downloadauthornb.cgi?name=FractalCurves)

Then Open all cells in the notebook’s section called “Initialization Code” and you will see the definition of all the functions used in the demonstration–including the Fixup function that he defines there.

---

<div class="post-metadata">

**Author:** ![betseygogo](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@betseygogo](https://community.wolfram.com/u/betseygogo)\
**Post date:** [July 7, 2014, 1:49am UTC](https://community.wolfram.com/t/is-there-a-function-fixup/2552/3 "2014-07-07T01:49:59Z")

</div>

If you download the “Author Code” from the link in the upper right hand side of

[http://demonstrations.wolfram.com/FractalCurves/](http://demonstrations.wolfram.com/FractalCurves/)

or use this link (which is the link from that page)

[http://demonstrations.wolfram.com/downloadauthornb.cgi?name=FractalCurves](http://demonstrations.wolfram.com/downloadauthornb.cgi?name=FractalCurves)

Then Open all cells in the notebook’s section called “Initialization Code” and you will see the definition of all the functions used in the demonstration–including the Fixup function that he defines there.
