APAMA EPL, adding/removing elements to a sequence

in APAMA EPL, If I have a sequence and I want to add 1 more value the syntax is : dictionary<string, sequence> TEST_dict;
TEST_dict[key].append(value);

but what if I want to remove 1 existing value from the sequence?

Maybe you should just check the documentation before raising these rather simple questions?

I guess this is what you are looking for:

1 Like

You should use the indexOf and remove function.

Ex:

integer index := TEST_dict[key].indexOf(value)

if index > -1 {

TEST_dict[key].remove(index)

}

Check the document ApamaDoc for details

1 Like