Skip to content

Instantly share code, notes, and snippets.

@lrytz
Created May 28, 2019 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrytz/4900473bba1640dda9d7a52aa3c0490d to your computer and use it in GitHub Desktop.
Save lrytz/4900473bba1640dda9d7a52aa3c0490d to your computer and use it in GitHub Desktop.
scala> println(typeOf[Option[String]].membersBasedOnFlags(0, scala.reflect.internal.Flags.METHOD).toList.sortBy(_.name).mkString("\n"))
method $asInstanceOf
method !=
method :\
method /:
method ==
method ##
method $init$
method $isInstanceOf
constructor Option
method addString
method addString
method addString
method aggregate
method asInstanceOf
method canEqual
method clone
method collect
method collectFirst
method contains
method copyToArray
method copyToArray
method copyToArray
method copyToBuffer
method corresponds
method count
method drop
method dropWhile
method eq
method equals
method exists
method filter
method filterNot
method finalize
method find
method flatMap
method flatMap
method flatten
method flatten
method fold
method fold
method foldLeft
method foldRight
method forall
method foreach
method get
method getClass
method getOrElse
method hasDefiniteSize
method hashCode
method isDefined
method isEmpty
method isInstanceOf
method isTraversableAgain
method iterator
method knownSize
method map
method max
method maxBy
method maxByOption
method maxOption
method min
method minBy
method minByOption
method minOption
method mkString
method mkString
method mkString
method ne
method nonEmpty
method notify
method notifyAll
method orElse
method orNull
method product
method productArity
method productElement
method productElementName
method productElementNames
method productIterator
method productPrefix
method reduce
method reduceLeft
method reduceLeftOption
method reduceOption
method reduceRight
method reduceRightOption
method reversed
method scanLeft
method size
method slice
method span
method splitAt
method stepper
method sum
method synchronized
method take
method takeWhile
method tapEach
method to
method toArray
method toBuffer
method toIndexedSeq
method toIterator
method toLeft
method toList
method toMap
method toRight
method toSeq
method toSet
method toStream
method toString
method toVector
method unzip
method unzip3
method wait
method wait
method wait
method withFilter
method zip
method zipWithIndex
scala>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment