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 characters
class A | |
class A2 extends A | |
class B | |
trait M[X] | |
// | |
// Upper Type Bound | |
// | |
def upperTypeBound[AA <: A](x: AA): A = x |
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 characters
object Alacarte { | |
trait Functor[F[_]]{ | |
def map[A, B](fa: F[A])(f: A => B): F[B] | |
} | |
trait Eval[F[_]] { | |
def F: Functor[F] | |
def evalAlgebra(fa: F[Int]): Int | |
} |
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 characters
"UserData": { | |
"Fn::Base64": { "Fn::Join":["", [ | |
"#!/bin/bash -ex\n", | |
"apt-get update\n", | |
"apt-get -y install python-setuptools\n", | |
"mkdir aws-cfn-bootstrap-latest\n", | |
"curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n", | |
"easy_install aws-cfn-bootstrap-latest\n", | |
"/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n", | |
"\n", |
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 characters
trait DataSourceComponent { | |
val source: DataSource | |
trait DataSource { | |
def getData: List[Int] | |
} | |
} | |
trait HttpRequestComponent { | |
val http: HttpRequest | |
trait HttpRequest { |
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 characters
case class Reader[A, B](run: A => B) { | |
def map[C](f: B => C): Reader[A, C] = { | |
val runN: A => C = (x: A) => f(run(x)) | |
Reader(runN) | |
} | |
def flatMap[C](f: B => Reader[A, C]): Reader[A, C] = { | |
val runN: A => C = (x: A) => f(run(x)).run(x) | |
Reader(runN) | |
} |
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 characters
case class Reader[A, B](run: A => B) { | |
def map[C](f: B => C): Reader[A, C] = { | |
val runN: A => C = (x: A) => f(run(x)) | |
Reader(runN) | |
} | |
def flatMap[C](f: B => Reader[A, C]): Reader[A, C] = { | |
val runN: A => C = (x: A) => f(run(x)).run(x) | |
Reader(runN) | |
} |
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 characters
case class Reader[A, B](run: A => B) { | |
def map[C](f: B => C): Reader[A, C] = { | |
val runN: A => C = (x: A) => f(run(x)) | |
Reader(runN) | |
} | |
def flatMap[C](f: B => Reader[A, C]): Reader[A, C] = { | |
val runN: A => C = (x: A) => f(run(x)).run(x) | |
Reader(runN) | |
} |
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 characters
<mxlibrary>[{"xml":"jVLBboMwDP2aHDdBWFPtWOjoaad9QVYCiWRIFkKh+/o5JIWxqdqQIsXv+b3Y2CQr2ulkuZGvuhJAsheSFVZrF27tVAgAQhNVkexIKE3wEFreYdOZTQy3onP/EdAguHAYREAIZbw1JMsBDXID/CwWqPEQRjP1bvH2B1JrLIMmtTfx7uxj8J3l3CoOa/hT1hveoax3V9jqvN9Drz4RPWBC+vTIGNub6bfVrXAIYBkst88gHAq8wXTzKLV66Crh/1SK9CiVE28mtDLixBCTroVI1wqg0KDtrM1YzXdsj/hFWKfOHA6gmg45p01s5Ft2OX9LDV4jprsjnaE4z5PQrXD2iimjqpyMGbsw9kQK1cgoe44Y70PcLNJ1QfASd+QWrrs4c5tV/QI=","w":150,"h":90,"aspect":"fixed","title":"Place"},{"xml":"jVLBboMwDP2aHDeFsKbasdDR0077gqwEEsmQLIRC9/UzJIWxqdqQItnv5b3Y2CTNm/HkhFWvppRA0heS5s4YH6JmzCUAYVSXJD0Sxigewoo7bDKz1AonW/8fAQuCi4BeBoQwLhpL0gzQIEMnf12geoIwm6l3h9EfSGWwDEYrcQ7u/KOfOsuE0wLW9Kess6JFWeevsNVNfg+d/kT0gBeSp0fO+d6Ov61uhUMAi2C5fQbhUOANZptHmTN9W8rpTyVID0p7+WZDKwNODDHlG4h0pQFyA8bN2pRXYsf3iF+k8/os4AC6bpHzxsZGvt0u5m+pYdLI8e5IZyjO8yRNI73DVumgS6/ijV0YO1VS1yrKniMmupDXi3RdEAzijtzSdRdnbrOqXw==","w":150,"h":90,"aspect":"fixed","title":"Party-party"},{"xml":"jVLBboMwDP2aHDeFsKbasdC1p532BVkJJJIhWQiF7utnSICxqdqQItnv5b3Y2CTN6+HshFWvppBA0heS5s4YH6J6yCUAYVQX |
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 characters
<mxlibrary>[{"xml":"jZHBbsMgDIafxvcEtig5JjTtaac+ASpeQHJKROmSvn0JcRftUGkHJPP//hC/DVKNyynoyX55gwSyB6mC93GrxkUhEYjCGZAHEKJIB8TxjVtmt5h0wGv8DyA24EfTHTcF+g/oamha6D+hbqEtoa+gUVAfdiVDt/gghoK/Xw2ub5Ygu9m6iOdJX1Z3TtmSZuNIbH87IuXJh8xKY6qqSZ0dfwVDxOVtnCxxlhP6EWN4pJbZmWi5gyMXFt1gGatY07ftPvyi+3BSwfN5Xfc9ZO/Pmp4=","w":120,"h":60,"aspect":"fixed"},{"xml":"jVFBbsMgEHzN3G1IHXw0jpNTT32BVbYBCQeLkNj5fQHTRj1EqgTS7szOws6C99N68uOs350iCz6A9965sEXT2pO1YJVR4AcwVsULdnzB1pmt5tHTJfxHwDbBfbQ32hAMLToG0WB4Q3tMZ2jQ9hCHhIgOXZ36DTtIAdFmtoGMwR6SQ8ocyCTMva/hYUtv724XRenpGlwu2gT6mMfPxC7RgojpMNlCfxlre2edz1pOe6F2IuLlx+QDrS+nzlAZ+URuouAfsWQxKuhSUZypNJmzLrKmYON1y8+/0qeHMSg2/qTPdWXuzza/AQ==","w":120,"h":60,"aspect":"fixed"},{"xml":"jVHNjsIgEH6auSNUrEfLVk+e9gnQzgrJVBpEW99+KZ1dsweTPZB8fD8DMwPK9NMh2sEdQ4cEqgVlYghpQf1kkAik8B2oD5BS5ANy/0ZdFVUMNuI1/Scgl8DD0h0XBto11GtoNLQVNA1sM9BQ76AWM9ga2O2h3cxSXbEnm0uZW3oSl4nhfu1wfmUFqhmdT/g52POsjrnbzLnUE8tfnsgECrFkVXWyWqvM8+cwJpzeNlgo7u6AoccUn9ky+i45dvAQhEN/cRzTzNnbcr/8Rl/jyoAn9nN9baZofxb3DQ==","w":120,"h":60,"aspect":"fix |
OlderNewer