<div>Hello,</div>
<div> </div>
<div>I&#39;m working on a project for my university. But I do not understand the assignment. It asks me to write a function that does the following:</div>
<div> </div>
<div>grayCode :: Int -&gt; ([Char] -&gt; Int, Int -&gt; [Char])</div>
<div> </div>
<div>well in my opinion this assignment tells me to write some function that gets one input (an integer) and result two functions in one tuple. One function goes from [Char] to Int and the other one goes from Int to [Char].</div>

<div> </div>
<div>But in my opinion this function will stay the same forever... am I mistaken?</div>
<div> </div>
<div>The assignment should be:</div>
<div> </div>
<div>Write an efficient code</div>
<div> </div>
<div>grayCode :: Int -&gt; ([Char] -&gt; Int, Int -&gt; [Char])</div>
<div> </div>
<div>that, for values between 2 and 36 (included), creates a Gray Code. That is, a tuple of two functions.</div>
<div> </div>
<div>Thanks!</div>