HP Forums

Full Version: iPhone Pro app produces unexpected results
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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?
Reference URL's