サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
TGS2024
blog.tmorris.net
Many people who are coming in to Scala first encounter the Option type, which may be thought of (among other things) as a type-safe null. They also encounter pattern matching as both a new and (relatively) powerful concept, but also one that is easy to understand. This leads to quite a lot of use of pattern matching and often excessively so in what I have observed. Particularly with a type as triv
class Fluffy f where furry :: (a -> b) -> f a -> f b -- Exercise 1 -- Relative Difficulty: 1 instance Fluffy [] where furry = error "todo" -- Exercise 2 -- Relative Difficulty: 1 instance Fluffy Maybe where furry = error "todo" -- Exercise 3 -- Relative Difficulty: 5 instance Fluffy ((->) t) where furry = error "todo" newtype EitherLeft b a = EitherLeft (Either a b) newtype EitherRight a b = Eithe
このページを最初にブックマークしてみませんか?
『λ Tony's Blog λ - Home』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く