2016-02-11 20:27:55 +09:00
2016-02-11 19:53:48 +09:00
2016-02-11 20:13:00 +09:00
2015-09-13 15:16:28 +09:00
2014-07-24 08:15:57 +09:00
2016-02-11 19:53:48 +09:00
2016-02-11 20:13:26 +09:00

mruby-set Build Status

Set class

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem :git => 'https://github.com/yui-knk/mruby-set.git'
end

example

set1 = Set.new([1,2])
set2 = Set[1,2,3]
set3 = Set[4]

set1 + set3
#=> #<Set: {1, 2, 4}>
set2 - set1
#=> #<Set: {3}>
set2 & set1
#=> #<Set: {1, 2}>
set1 ^ set2
#=> #<Set: {3}>

limitation

These methods are not implemented yet.

  • freeze
  • taint
  • untaint
  • to_set
  • divide(Set#divide with 2 arity block is not implemented.)

License

under the MIT License:

  • see LICENSE file
S
Description
Automated archival mirror of github.com/mruby/mruby
Readme MIT 44 MiB
Languages
C 69.9%
Ruby 23.9%
Yacc 4.7%
C++ 1.4%