Skip to content

Instantly share code, notes, and snippets.

@NTCoding
Last active December 12, 2015 11:47
Show Gist options
  • Select an option

  • Save NTCoding/1b99ddfe540c04b299b4 to your computer and use it in GitHub Desktop.

Select an option

Save NTCoding/1b99ddfe540c04b299b4 to your computer and use it in GitHub Desktop.
object RecommendAFriend{
type Validate = NewAccountDetails => Unit
type FindCustomer = String => Option[User]
type CreateCustomer = NewAccountDetails => User
type ReferralPolicy = NewAccountDetails => User
def apply(validate: Validate, findCustomer: FindCustomer, createCustomer: CreateCustomer,
referralPolicy: ReferralPolicy)
(referrerId: Int, friendsAccountDetails: NewAcccountDetails) = {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment