Comparing two Array that are multiple attributes with Skyline Query definition.
Add this to your application's shard.yml
:
dependencies:
skyline-cr:
github: shadow3x3x3/skyline-cr
require "skyline-cr"
[1, 2, 3].dominate? [2, 3, 4] # => Domination::Dominate
[1, 2, 3].dominate? [2, 3, 1] # => nil
[2, 3, 4].dominate? [1, 2, 3] # => Domination::BeDominated
[2, 3, 4].dominate? [1, 2, 3, 1] # => raise SkylineException "Two Attributes size are not match."
crystal spec
- Fork it ( https://github.com/shadow3x3x3/skyline-cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- [shadow3x3x3] shadow3x3x3 - creator, maintainer