Top "Option" questions

DO NOT USE THIS TAG.

How do I find the min() or max() of two Option[Int]

How would you find minValue below? I have my own solution but want to see how others would do it. …

scala max option min
Convert a List of Options to an Option of List using Scalaz

I want to transform a List[Option[T]] into a Option[List[T]]. The signature type of the function is …

scala option scalaz
How to style selected option color separately from disabled option

I have a HTML dropdown select menu with first option is disabled. I would like to show that default disabled …

html css select option selected
Android: Multiple Option Menus in one Activity

I have an Activity containing a ViewFlipper and would like to show a different option menu for each view in …

android android-activity menu option
Display value of :set option

If you don't give :colorscheme an argument then it shows the name of the colorscheme that vim is currently using. …

vim option
Un-optioning an optioned Option

Say I have a val s: Option[Option[String]]. It can thus have the following values: Some(Some("foo")) Some(…

scala join option monads flatten
Why is the use of Maybe/Option not so pervasive in Clojure?

Why does Clojure, despite such an emphasis on functional paradigm, not use the Maybe/ Option monad to represent optional values? …

functional-programming clojure option monads maybe
Disable preflight OPTION request when sending a cross domain request with custom HTTP header

I've just found out that my browser was sending an extra "OPTION" request when trying to make a cross domain …

ajax http-headers cross-domain option preflight
Scala: How can I explicitly compare two Options?

If I have two Options such as val a = Option(2) val b = Option(1) I can write List(a,b).sorted …

scala option implicit
Does Scala have an API method that converts a Seq[Option[T]] to Seq[T]?

Is there a Scala API method to convert a Seq[Option[T]] -> Seq[T]? You can do this …

scala option