HOW CAN I FINISH THIS
Code: Select all
*** [S01(10),S02(8)].*
Format: Select all
{ model.s.collect{ 'S' + it.pad(2) }.joiningDistinct(',', '(', ')') }
Code: Select all
*** [S01(10),S02(8)].*
Format: Select all
{ model.s.collect{ 'S' + it.pad(2) }.joiningDistinct(',', '(', ')') }
Format: Select all
{ episodelist.findAll{ it.s && it.e }.groupBy{ it.s }.collect{ k, v -> 'S' + k.pad(2) + '(' + v.e.max().pad(2) + ')' } }
Code: Select all
[S01(22), S02(22), S03(22), S04(22), S05(17)]
I see, then {model} is indeed the way to go.xiaobaitu2005 wrote: ↑01 Jan 2025, 14:55 I mean to display how many episodes I have as opposed to how many episodes there are according to the episode list.
Format: Select all
{ model.findAll{ it.s && it.e }.groupBy{ it.s }.collect{ k, v -> 'S' + k.pad(2) + '(' + v.e.max().pad(2) + ')' } }