I honestly donβt think the problem is the direction of the help scrolling or the lack of paging. For me at least is primary issue is what I call βdoc pollutionβ. In complex packages with a lot of dependencies, a common function gets concatenated docs for all sorts of obscure methods that most users are not interested in. This is the cruft you have to scroll past to get to the basic usage at the very top. For example:
help?> first # no loaded packages, so relatively brief
search: first firstindex popfirst! pushfirst! uppercasefirst lowercasefirst findfirst searchsortedfirst
first(coll)
Get the first element of an iterable collection. Return the start point of an AbstractRange even if it is empty.
See also: only, firstindex, last.
Examples
β‘β‘β‘β‘β‘β‘β‘β‘β‘β‘
julia> first(2:2:10)
2
julia> first([1; 2; 3; 4])
1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(itr, n::Integer)
Get the first n elements of the iterable collection itr, or fewer elements if itr is not long enough.
See also: startswith, Iterators.take.
β Julia 1.6
β
β This method requires at least Julia 1.6.
Examples
β‘β‘β‘β‘β‘β‘β‘β‘β‘β‘
julia> first(["foo", "bar", "qux"], 2)
2-element Vector{String}:
"foo"
"bar"
julia> first(1:6, 10)
1:6
julia> first(Bool[], 1)
Bool[]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(s::AbstractString, n::Integer)
Get a string consisting of the first n characters of s.
Examples
β‘β‘β‘β‘β‘β‘β‘β‘β‘β‘
julia> first("βΟ΅β 0: ϡ²>0", 0)
""
julia> first("βΟ΅β 0: ϡ²>0", 1)
"β"
julia> first("βΟ΅β 0: ϡ²>0", 3)
"βΟ΅β "
julia>
Compare with:
julia> using DataFrames
help?> first
search: first firstindex popfirst! pushfirst! uppercasefirst lowercasefirst findfirst searchsortedfirst
first(coll)
Get the first element of an iterable collection. Return the start point of an AbstractRange even if it is empty.
See also: only, firstindex, last.
Examples
β‘β‘β‘β‘β‘β‘β‘β‘β‘β‘
julia> first(2:2:10)
2
julia> first([1; 2; 3; 4])
1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(itr, n::Integer)
Get the first n elements of the iterable collection itr, or fewer elements if itr is not long enough.
See also: startswith, Iterators.take.
β Julia 1.6
β
β This method requires at least Julia 1.6.
Examples
β‘β‘β‘β‘β‘β‘β‘β‘β‘β‘
julia> first(["foo", "bar", "qux"], 2)
2-element Vector{String}:
"foo"
"bar"
julia> first(1:6, 10)
1:6
julia> first(Bool[], 1)
Bool[]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(s::AbstractString, n::Integer)
Get a string consisting of the first n characters of s.
Examples
β‘β‘β‘β‘β‘β‘β‘β‘β‘β‘
julia> first("βΟ΅β 0: ϡ²>0", 0)
""
julia> first("βΟ΅β 0: ϡ²>0", 1)
"β"
julia> first("βΟ΅β 0: ϡ²>0", 3)
"βΟ΅β "
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(q::Deque)
Returns the first element of the deque q.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(D::CircularDeque)
Get the item at the front of the queue.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(s::Stack)
Get the top item from the stack. Sometimes called peek.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(h::BinaryHeap)
Returns the element at the top of the heap h.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(h::BinaryMinMaxHeap)
Get the first (minimum) of the heap.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(sc)
Argument sc is a SortedDict, SortedMultiDict or SortedSet. This function returns the first item (a k=>v pair for
SortedDict and SortedMultiDict or a key for SortedSet) according to the sorted order in the container. Thus,
first(sc) is equivalent to deref((sc,startof(sc))). It is an error to call this function on an empty container.
Time: O(log n)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(sc)
Argument sc is a SortedDict, SortedMultiDict or SortedSet. This function returns the first item (a k=>v pair for
SortedDict and SortedMultiDict or a key for SortedSet) according to the sorted order in the container. Thus,
first(sc) is equivalent to deref((sc,startof(sc))). It is an error to call this function on an empty container.
Time: O(log n)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(sc)
Argument sc is a SortedDict, SortedMultiDict or SortedSet. This function returns the first item (a k=>v pair for
SortedDict and SortedMultiDict or a key for SortedSet) according to the sorted order in the container. Thus,
first(sc) is equivalent to deref((sc,startof(sc))). It is an error to call this function on an empty container.
Time: O(log n)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(cb::CircularBuffer)
Get the first element of CircularBuffer.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(df::AbstractDataFrame)
Get the first row of df as a DataFrameRow.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
first(df::AbstractDataFrame, n::Integer; view::Bool=false)
Get a data frame with the n first rows of df.
If view=false a freshly allocated DataFrame is returned. If view=true then a SubDataFrame view into df is returned.
julia>
There are much worse examples, this was literally the first (haha) function I tried.