Skip to content

Instantly share code, notes, and snippets.

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}()