Skip to content

Instantly share code, notes, and snippets.

@rirakkumya
Created March 17, 2013 14:27
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 rirakkumya/5181743 to your computer and use it in GitHub Desktop.
Save rirakkumya/5181743 to your computer and use it in GitHub Desktop.
coding style
//少人数スタイル
Some(140000) map (_ + 5000) map (_ - 80000)
//多人数スタイル
val rentSupport:Int => Int = _ + 5000
val dormFee:Int => Int = _ - 80000
val salaryCalc = rentSupport andThen dormFee
Some(140000) map salaryCalc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment