From 218895744dbf3f549d52e758017e6dec531f4d83 Mon Sep 17 00:00:00 2001 From: George Datseris Date: Thu, 10 May 2018 14:11:09 +0200 Subject: [PATCH] allow getindex with BitArray on Notes --- src/note.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/note.jl b/src/note.jl index f87d583..e99d159 100644 --- a/src/note.jl +++ b/src/note.jl @@ -80,7 +80,7 @@ Base.done(n::Notes, i) = done(n.notes, i) Base.length(n::Notes) = length(n.notes) Base.endof(n::Notes) = endof(n.notes) Base.getindex(n::Notes, i::Int) = n.notes[i] -Base.getindex(n::Notes, r::AbstractVector{Int}) = Notes(n.notes[r], n.tpq) +Base.getindex(n::Notes, r) = Notes(n.notes[r], n.tpq) # Pushing Base.push!(no::Notes{N}, n::N) where {N <: AbstractNote} = push!(no.notes, n)