HP Forums
iPhone Pro app produces unexpected results - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: iPhone Pro app produces unexpected results (/thread-10389.html)



iPhone Pro app produces unexpected results - Jacob Wall - 03-25-2018 10:18 PM

Testing on the Pro app for iPhone today, I ran into an issue that I was able to narrow down to the "head" command. Take for example this code:

Code:
EXPORT HEAD
BEGIN
  LOCAL vec:=[1,2,3,4],first;
  first:=head(vec);
  MSGBOX(first);
END;

On Windows, Android and real Calculator the result is as expected, a message box showing '1' is the result. On iPhone, the message box displays 'vec'.

Anyone have some insight as to what is going on here?


RE: iPhone Pro app produces unexpected results - Jacob Wall - 03-25-2018 11:45 PM

Similar problem with the tail command on iOS, during my testing it returned an empty list always.

I have implemented alternative methods for both head and tail but find it a strange issue that it's broken on one platform only, perhaps there are other commands also affected?