Option
code:Option.ts
type Option<A> = None | Some<A>
同期処理
非同期処理の場合はTask
失敗しない
失敗する場合はEither
Reference: https://gcanti.github.io/fp-ts/modules/Option.ts.html