ArxivSubject

public struct ArxivSubject : Hashable, Codable, CustomStringConvertible

Representation of a single searchable arXiv subject.

Use Subject values with ArxivQuery.subject to retrieve articles belonging to the subject.

All available subject constants are defined under ArxivSubjects namespace.

  • Returns arXive category symbol of the subject.

    Declaration

    Swift

    public let symbol: String
  • Constructs ArxivSubject for provideed symbol, or nil if provided string is not a valid arXiv category symbol.

    Declaration

    Swift

    public init?(symbol: String)

    Parameters

    symbol

    A valid arXivCategory symbol.

  • Returns human-readable arXiv subject name.

    Declaration

    Swift

    public var name: String { get }
  • Returns an array of child subjects or empty array if the given subject does not have any chidlren.

    Declaration

    Swift

    public var children: [ArxivSubject] { get }
  • Declaration

    Swift

    public var description: String { get }