File: README.md

package info (click to toggle)
nghttp2 1.68.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,592 kB
  • sloc: ansic: 104,233; cpp: 55,792; ruby: 30,108; yacc: 7,083; sh: 4,643; makefile: 1,506; python: 806
file content (34 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# mruby-set

Set class

## Example

```ruby
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}>
```

## Limitations

These methods are not implemented yet:

- freeze
- to_set
- divide(Set#divide with 2 arity block is not implemented.)

## License

Under the MIT License:

- see [LICENSE](LICENSE) file