Skip to content

Commit 7e82ddd

Browse files
committed
installation guide
1 parent 7466501 commit 7e82ddd

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,34 @@ operations to modify and/or get information about the collection. The operations
1616
First glance (finite Stream from an array):
1717

1818
```ruby
19-
array = [1, 2, 2, 2, 3, 3, 4, 5]
20-
stream = Stream::FromArray(array)
19+
array = [1, 2, 3, 4, 5]
20+
stream = Stream::FromArray.new(array)
2121
collected = stream
22-
.distinct()
2322
.skip(2)
2423
.collect
2524
puts collected # [3, 4, 5]
2625
```
2726

28-
More info and examples soon.
27+
More examples soon.
28+
29+
## Installation
30+
31+
Add this line to your application's Gemfile:
32+
```ruby
33+
gem 'ruby-stream-api'
34+
```
35+
36+
Or install it as a separate gem:
37+
```bash
38+
$gem install ruby-stream-api
39+
```
40+
41+
To require it inside your Ruby program do:
42+
```ruby
43+
require 'stream'
44+
```
45+
46+
The latest version is `0.0.1`
2947

3048
## Not a Mixin
3149

0 commit comments

Comments
 (0)