Intel® Fortran Compiler 17.0 Developer Guide and Reference

MODULE FUNCTION

Statement: Indicates a separate module procedure.

Example

submodule (M) A
contains
  real module function foo (arg) result(res)
    type(tt), intent(in) :: arg
    res = arg%r
  end function foo
end submodule A

See Also