Skip to content

Instantly share code, notes, and snippets.

View CFBaptista's full-sized avatar

Carlos Fernando Baptista CFBaptista

View GitHub Profile
@CFBaptista
CFBaptista / test_skipat.jl
Created July 12, 2019 14:50
Testing an iterator for skipping a particular index in a for loop
using Base.Iterators
using Base: @propagate_inbounds
#-------------------------------------------------------------------------------
# Iterator
#-------------------------------------------------------------------------------
struct SkipAt{I}
iter::I
skip::Int