Last active
August 29, 2015 14:06
-
-
Save MrAIring/3d40923f9e987d6b19bf to your computer and use it in GitHub Desktop.
Revisions
-
MrAIring revised this gist
Sep 11, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ val name: Option[String] = request.getParameter("name") val upperNameOpt = name.map(_.trim.toUpperCase).filter(_ != "") println(upperNameOpt getOrElse "no name value") -
MrAIring renamed this gist
Sep 11, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
MrAIring created this gist
Sep 11, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ val name: Option[String] = request.getParameter("name") val upperNameOpt = name.map(_trim.toUpperCase).filter(_ != "") println(upperNameOpt getOrElse "no name value")