Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naoty/stream
Swift library to control streams on Functional Reactive Programming model
https://github.com/naoty/stream
Last synced: 2 months ago
JSON representation
Swift library to control streams on Functional Reactive Programming model
- Host: GitHub
- URL: https://github.com/naoty/stream
- Owner: naoty
- License: mit
- Created: 2014-08-25T04:52:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-29T02:30:11.000Z (over 10 years ago)
- Last Synced: 2024-04-15T02:57:38.603Z (8 months ago)
- Language: Swift
- Homepage:
- Size: 211 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stream
Swift library to control streams on Functional Reactive Programming model
## Demo
```swift
let stream = Stream()
let counterStream: Stream = stream.map({ message in
return countElements(message)
}).scan(0, { previousMessage, message in
return previousMessage + message
}).subscribe({ message in
println(message)
})
stream.publish("Hello, ") //=> 7
stream.publish("wor") //=> 10
stream.publish("ld!") //=> 13
```## Usage
TODO
## Installation
TODO
## Contribution
1. Fork
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request## License
Stream is available under the MIT license. See the LICENSE file for more info.
## Author
[naoty](https://github.com/naoty)