You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Unfortuantely it doesn't work. IMO it's a problem of the access method of the sequence.
When I replace Employee? employee = employees[0]; with Employee? employee = employees.item(0); it works fine.
[@alexanderbell] Ops sorry I was looking for a comparable issue unfortunately I didn't find #72.
I just playing around with Ceylon right now. Probably it's better when I collect my issues and post them on the dev-list first instead of open an git issue, isn't it?
[@alexanderbell] Hi,
I tried to use Sequences with a user defined type:
Emplyee class:
Now, I wann store some employees in a sequence:
Afterward I pass the sequence to a method. In that method I wanna read the first element for instance:
Ok, to access the employee I have to do a null check:
Option 1:
Option 2:
Unfortuantely it doesn't work. IMO it's a problem of the access method of the sequence.
When I replace
Employee? employee = employees[0];
withEmployee? employee = employees.item(0);
it works fine.cheers Alex
[Migrated from ceylon/ceylon-compiler#219]
[Closed at 2011-11-23 12:44:39]
The text was updated successfully, but these errors were encountered: