Skip to main content

Pop

Remove an entry from a vector at a specific location.

INTERFACE
MODULE PURE FUNCTION Pop(vec, pos) RESULT(ans)
INTEGER(Int8|Int16|In32|Int64|Real32|Real64), INTENT(IN) :: vec(:)
INTEGER(I4B), INTENT(IN) :: pos
INTEGER(Int8|Int16|In32|Int64|Real32|Real64) :: ans(MAX(SIZE(vec) - 1, 0))
END FUNCTION Pop
END INTERFACE