Sha256: aeb064bacdb48e3aeb0527599a1577d09fd3f7da5dee65bc2480612346137387

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

#### Nested Sets

This example shows nested sets.

```show.rb```:
```ruby
require 'set'

require 'debug_helper'

set = Set.new(
    [0,
     Set.new([1, 2]),
     Set.new([3, 4]),
     ])
DebugHelper.show(set, 'My nested sets')
```

The output shows details of the sets.

```show.yaml```:
```yaml
---
Set (message='My nested sets'):
  Set#size: 3
  Element 0: Fixnum 0
  Element 1:
    Set:
      Set#size: 2
      Element 0: Fixnum 1
      Element 1: Fixnum 2
  Element 2:
    Set:
      Set#size: 2
      Element 0: Fixnum 3
      Element 1: Fixnum 4
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
debug_helper-2.0.0 markdown/readme/classes/set/nested/show.md