Skip to content

Commit

Permalink
Changes aliases description
Browse files Browse the repository at this point in the history
  • Loading branch information
badosu committed Apr 9, 2012
1 parent 39221d8 commit 6e0db7a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -33,8 +33,8 @@ Usage
### Initializing

An Interval can be initialized with an empty, one or two sized array
(respectively for an _empty_, _degenerate_ or `simple` interval), or
an array of one or two sized arrays (for a `multiple` interval).
(respectively for an _empty_, _degenerate_ or `Simple` interval), or
an array of one or two sized arrays (for a `Multiple` interval).

```ruby
Interval[]
Expand Down Expand Up @@ -80,31 +80,31 @@ Some natural properties of intervals:

* Complement

__complement__ and __~__
`#complement`, alias: `~`

```ruby
~Interval[0,5] # -> Interval[[-Infinity, 0], [5, Infinity]]
```

* Union

__union__, __|__ and __+__
`union`, aliases: `|`,`+`

```ruby
Interval[0,5] | Interval[-1,3] # -> Interval[-1,5]
```

* Intersection

__intersect__, __&__, __^__
`intersect`, aliases: `&`,`^`

```ruby
Interval[0,5] ^ Interval[-1,3] # -> Interval[0,3]
```

* Subtraction

__minus__ and __-__
`minus`, alias: `-`

```ruby
Interval[0,5] - Interval[-1,3] # -> Interval[3,5]
Expand Down

0 comments on commit 6e0db7a

Please sign in to comment.