<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1474203280813_2972" dir="ltr">Forget it. Just found the answer myself on Swift ebook. It's a bitwise xor operator. And there's no power operator in Swift. Sorry.<br id="yui_3_16_0_1_1474203280813_3057"></div><div id="yui_3_16_0_1_1474203280813_2972" dir="ltr"><br></div><div id="yui_3_16_0_1_1474203280813_2972" dir="ltr">I've looked for this for hours. Why did I find the answer after I asked here? Life. :)</div><div></div><div id="yui_3_16_0_1_1474203280813_2894"><br></div><div class="signature" id="yui_3_16_0_1_1474203280813_2905">–Mr Bee<div id="yui_3_16_0_1_1474203280813_3236"><br></div></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Pada Minggu, 18 September 2016 19:41, Mr Bee <pak.lebah@yahoo.com> menulis:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv4346475953"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv4346475953yui_3_16_0_1_1474202273150_2698"><span>Hi all,</span></div><div></div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2699"> </div><div>I wrote this in XCode Playground…</div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2700"><br></div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2701">let i = 2^2</div><div class="yiv4346475953signature" id="yiv4346475953yui_3_16_0_1_1474202273150_2471"><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470">print(i)</div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470"><br></div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr">It runs fine without any errors and print 0, while I expect it to print 4 from 2 power by 2 or 2². Swift ebook and even Google gave me nothing on this.</div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr"><br></div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr">What did I miss?</div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr"><br></div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr">Thank you.</div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr"><br></div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470" dir="ltr">Regards,</div><div id="yiv4346475953yui_3_16_0_1_1474202273150_2470"><br></div>–Mr Bee<div id="yiv4346475953yui_3_16_0_1_1474202273150_2472"><br></div></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>