Programming-Idioms

History of Idiom 42 > diff from v32 to v33

Edit summary for version 33 :
New Fortran implementation by user [tkoenig]

Version 32

2019-09-27, 10:10:40

Version 33

2019-09-27, 13:43:17

Idiom #42 Continue outer loop

Print each item v of list a which in not contained in list b.
For this, write an outer loop to iterate on a and an inner loop to iterate on b.

Illustration

Idiom #42 Continue outer loop

Print each item v of list a which in not contained in list b.
For this, write an outer loop to iterate on a and an inner loop to iterate on b.

Illustration
Code
  outer: do i=1,size(a)
     do j=1,size(b)
        if (a(i) == b(j)) cycle outer
     end do
     print *,a(i)
  end do outer