Skip to content

Instantly share code, notes, and snippets.

View kioba's full-sized avatar
🏠
Working from home

kioba kioba

🏠
Working from home
View GitHub Profile
@raulraja
raulraja / di.kt
Last active October 30, 2021 16:30
Simple Kotlin DI
package com.fortyseven.fptraining
import arrow.core.Either
import arrow.core.right
import arrow.effects.IO
import arrow.effects.extensions.io.fx.fx
data class Account(val balance: Int)
data class AccountEntity(val balance: Int)

Date: 17/09/2018

  • Author: Filipe Mendes
  • Team: Android Team
  • Severity: Minor/Moderate/Major/Critical
  • Status: Work in Progress / Complete

Summary

_Short description (5 sentences). List the duration along with start and end times.

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x