Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
i2y committed Nov 30, 2014
1 parent a2c7b04 commit 330f519
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,6 @@ offset(Point3D(1, 2, 3), Point3D(4, 5, 6))
# => Point3D(x=5, y=7, z=9)
```

### Pipeline operator
```python
add = -> $1 + $2
2 |> add(10) |> add(12)
# => 24
None |>? add(10) |>? add(12)
# => None
```

### Anonymous function
```python
# Arrow expression.
Expand Down Expand Up @@ -327,6 +318,15 @@ pvector(map(-> $1 * 2, [1, 2, 3]))
# => pvector([2, 4, 6])
```

### Pipeline operator
```python
add = -> $1 + $2
2 |> add(10) |> add(12)
# => 24
None |>? add(10) |>? add(12)
# => None
```

### Including a file at compile time
```sh
$ cat anko.mochi
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,6 @@ show(1.0, 'msg')
# => None
```

### パイプライン演算子
```python
add = -> $1 + $2
2 |> add(10) |> add(12)
# => 24
None |>? add(10) |>? add(12)
# => None
```

### 無名関数
```python
# アロー式。CoffeeScriptに類似。
Expand Down Expand Up @@ -347,6 +338,15 @@ pvector(map(-> $1 * 2, [1, 2, 3]))
# => pvector([2, 4, 6])
```

### パイプライン演算子
```python
add = -> $1 + $2
2 |> add(10) |> add(12)
# => 24
None |>? add(10) |>? add(12)
# => None
```

### ファイルをインクルードする(コンパイル時に一度だけ)
```sh
$ cat anko.mochi
Expand Down

0 comments on commit 330f519

Please sign in to comment.