Sha256: 9601e6b602c5a08eacf2b1505d6916e5899f6c709810a824a36815b5e1c685d1
Contents?: true
Size: 520 Bytes
Versions: 11
Compression:
Stored size: 520 Bytes
Contents
def map_test(a) a.map {|n| n.to_s } end def map_bang_test(a) a.map! {|n| n.to_s } a end def map_bang_test_known_bug(a) a.map! {|n| n.to_s } end map_test([1, 2, 3]) map_bang_test([1, 2, 3]) map_bang_test_known_bug([1, 2, 3]) __END__ # Classes class Object private def map_test: ([Integer, Integer, Integer] a) -> Array[String] def map_bang_test: ([Integer, Integer, Integer] a) -> (Array[Integer | String]) def map_bang_test_known_bug: ([Integer, Integer, Integer] a) -> [Integer, Integer, Integer] end
Version data entries
11 entries across 11 versions & 1 rubygems