Skip to main content

In

This routine returns true if an integer set is a subset of another integer set.

Calling example:

abool = [1,2,3] .in. [1,3,4,5,2]

Interface 1

MODULE PURE FUNCTION In(a, b) RESULT(Ans)
INTEGER(INT8| Int16 | Int32 | Int64), INTENT(IN) :: a(:)
INTEGER(INT8| Int16 | Int32 | Int64), INTENT(IN) :: b(:)
LOGICAL(LGT) :: ans
END FUNCTION In

Interface 2

MODULE PURE FUNCTION In(a, b) RESULT(Ans)
INTEGER(INT8), INTENT(IN) :: a
INTEGER(INT8), INTENT(IN) :: b(:)
LOGICAL(LGT) :: ans
END FUNCTION In