Skip to content

Commit

Permalink
Task #142 - Add document site using sbt-microsites
Browse files Browse the repository at this point in the history
* Added: doc for Option
  • Loading branch information
kevin-lee committed Jan 9, 2020
1 parent 45c51a0 commit a22fcaa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/docs/option.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: docs
title: Option
---

# Option
## Option Constructors
Similar to `Either`, creating `Option` can expose its data instead of type.

e.g.) The following code returns `Some[Int]` not `Option[Int]`.
```scala mdoc
Some(1)
```

Also None is None not `Option[A]`.
```scala mdoc
None
```

With `just-fp`,

```scala mdoc
import just.fp.syntax._
```
```scala mdoc
1.some
```
```scala mdoc
none[String]
```
3 changes: 3 additions & 0 deletions microsite/data/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ options:

- title: Either
url: docs/either

- title: Option
url: docs/option

0 comments on commit a22fcaa

Please sign in to comment.