Skip to content

Commit

Permalink
allow getindex with BitArray on Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed May 10, 2018
1 parent d20290d commit 2188957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/note.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2188957

Please sign in to comment.