Skip to content

Commit

Permalink
Added type.
Browse files Browse the repository at this point in the history
  • Loading branch information
aptmcl committed Mar 25, 2024
1 parent 0480bbb commit 5e88a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ list(gen::Base.Generator) =
head(x::Cons{T}) where {T} = x.head::T
tail(x::Cons{T}) where {T} = x.tail
Base.first(x::Cons) = x.head
Base.Iterators.drop(x::Cons, n) = n == 0 ? x : drop(x.tail, n-1)
Base.Iterators.drop(x::Cons, n::Integer) = n == 0 ? x : drop(x.tail, n-1)
Base.iterate(l::List, ::Nil) = nothing
Base.iterate(l::List, state::Cons = l) = state.head, state.tail

Expand Down

0 comments on commit 5e88a35

Please sign in to comment.