SkillAgentSearch skills...

Stream

Swift library to control streams on Functional Reactive Programming model

Install / Use

/learn @naoty/Stream
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Stream

Swift library to control streams on Functional Reactive Programming model

Demo

let stream = Stream<String>()
let counterStream: Stream<Int> = 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

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated7y ago
Forks0

Languages

Swift

Security Score

75/100

Audited on Jun 10, 2018

No findings