| how to use lazy rule to output various value [message #1850253] | 
Tue, 22 February 2022 21:16   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
When I generate emftvm file, it tell me don't use distinct foreach. so I hope you can teach me how to change?I want to know which way I should iterate over the elements in the array 
For this code, how to use the lazy rule to modify? thank you. 
using { 
	coll : Sequence(String) = Sequence{'Score1', 'Score2', 'Total'}; 
} 
to 
	tab : Table!Table ( 
		lines <- t_lines 
	), 
	t_lines : distinct Table!Line foreach(e in coll)( 
		id <- coll->indexOf(e), 
		caption <- line_captions 
	), 
	line_captions : distinct Table!Caption foreach(e in coll)( 
		content <- e 
	)
 |  
 |  
  | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.06133 seconds