problem with the iteration [message #1764570] |
Wed, 31 May 2017 10:52 |
im hello world Messages: 44 Registered: February 2017 |
Member |
|
|
Hi,
In the following code, i want that the id takes in each iteration a number from the sequence 's', so as a result in my target model i obtain the id 1 then 2 if i had 2 source elements, 1,2,3 if i had 3 source elements etc...
from...
to
split: ABC!Loc (
id <- let s: Sequence(Integer) = Sequence{1, 2, 3, 4, 5} in
s->iterate(e; res : Integer = s->first() |( e).toString()),
the problem is, i always get the last element in my target model, my id are always 5 , there is no iteration on 's' to get the following ids: 1,2 for example.
please, how to make this happen.
regards
|
|
|
|
Powered by
FUDForum. Page generated in 0.02861 seconds