How to parse a custom AFL array?


#1

Hello Everybody,

I am new to ALF coding and writing an AFL that has an array full of integers.

For example;
1 3 3 1 1 2 2 3 3 2 2 1 2 3 1 1 2 2 3 2 1 0 1 0 0 3 1 2 2 0 2 2 2 1 3 2 2 0 1 1 3 1 2 2 3 3 3 2 2 3 1 0 1 2 3 2 3 2 3 0 2 2 2

I would like to extract few patterns from this like 123,1223,12223 etc and make all other values zero. I know this can be achieved using a for loop. However, is there an alternative using array processing that I can use?

Thanks for your time.


#2

to process elements within an array, there is no choice but to use looping