Sha256: 07e039693e9793bc5ea6ef725bb7f677b55cd41a85b17ff7d45a4d4ab9326b1c
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
#### Circular Sets This example shows sets that make a circular reference. ```show.rb```: ```ruby require 'set' require 'debug_helper' set_0 = Set.new([]) set_1 = Set.new([]) set_0.add(set_1) set_1.add(set_0) DebugHelper.show(set_0, 'My circular sets') ``` The output shows details of the sets. The circular reference is not followed. ```show.yaml```: ```yaml --- Set (message='My circular sets'): size: 1 Element 0: Set: size: 1 Element 0: 'Set #<Set: {#<Set: {#<Set: {...}>}>}>' ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-1.8.0 | markdown/readme/classes/set/circular/show.md |