[ create a new paste ] login | about

Link: http://codepad.org/y2Z6V4Mw    [ raw code | output | fork ]

Ruby, pasted on Oct 10:
1
2
3
4
5
require 'set'

x = [2, 3].to_set
e = 3
p x.delete(e)


Output:
1
#<Set: {2}>


Create a new paste based on this one


Comments: