<div dir="ltr"><div>Hi, </div><div><br></div><div>Can someone please explain the difference in outputs of the following two expressions - </div><div><br></div><div>--------------</div><div><br></div><div><div><font face="monospace, monospace">ghci> fmap (replicate 3) (Right "blah") </font></div><div><font face="monospace, monospace">Right ["blah","blah","blah"] </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">ghci> fmap (replicate 3) (Left "foo") </font></div><div><font face="monospace, monospace">Left "foo" </font></div></div><div><font face="monospace, monospace"><br></font></div><div>---------------</div><div><br></div><div>Why does 'Right' return a list of Strings whereas 'Left' returns just a String.</div><div><br></div><div>Thanks,</div><div><div class="gmail_signature"><div dir="ltr"><font color="#0b5394"><font style="background-color:rgb(255,255,255)"><font size="2" face="georgia, serif">Shishir </font></font></font><br></div></div></div>
</div>