Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def getSystemStatusInfo[F[_]: Applicative](fetchSystem: F[System], fetchSystemStatus: F[SystemStatus]): F[SystemStatusInfo] = {
Applicative[F].map2(fetchSystem, fetchSystemStatus)((system, systemStatus) => SystemStatusInfo(system, systemStatus))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment