package fp101.tp03.option
object ExerciceOptions {
/**
* Give the positive square root of x
*
* If the argument is less than zero, the result is None
*
* hint: You can use Math.sqrt
*/
def squareRoot(x: Int): Option[Double] = if(x < 0) None else Some(Math.sqrt(x))
/**
*
* Without using l.take nor l(index), create a function that will return the Some(element) at index n
* otherwise None
*/
def getOption[T](l: List[T], index: Int): Option[T] = ???
}