Julia among the most loved languages

Here’s the Julia documentation for strip, for comparison:

help?> strip
search: strip rstrip lstrip AbstractDisplay string stride String strides StridedArray StridedVector StridedMatrix StridedVecOrMat StringIndexError

  strip([pred=isspace,] str::AbstractString) -> SubString
  strip(str::AbstractString, chars) -> SubString

  Remove leading and trailing characters from str, either those specified by chars or those for which the function pred returns true.

  The default behaviour is to remove leading whitespace and delimiters: see isspace for precise details.

  The optional chars argument specifies which characters to remove: it can be a single character, vector or set of characters.

  │ Julia 1.2
  │
  │  The method which accepts a predicate function requires Julia 1.2 or later.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

  julia> strip("{3, 5}\n", ['{', '}', '\n'])
  "3, 5"

It seems similar to the QT documentation, except that Julia has 3 methods and only one has an example. I agree it would be good to have an example for each method.

2 Likes