This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module fill | |
export fillforward!, fillbackward! | |
"""backfirstfillloop and fillloop are supporting functions for fillcol!""" | |
function backfirstfillloop!(arr::AbstractArray{Union{Missing,T}, 1},filldirection::Function) where T | |
# Create a pointer of the same type as the array elements to keep | |
# the loop type stable | |
fillval = Ref{T}() | |
foundfirst = false | |
firstval = Ref{T}() |