Sha256: 897c84bd784fc0dedddf30fded27bc83118cdab3b879bc050ae92672dac04363
Contents?: true
Size: 259 Bytes
Versions: 9
Compression:
Stored size: 259 Bytes
Contents
# frozen_string_literal: true require_relative "setup" require "ryo" point_x = Ryo(x: 2) point_y = Ryo({y: 4}, point_x) point = Ryo({}, point_y) Ryo.map!(point) { |key, value| value * 2 } p [point.x, point.y] p [point_x.x, point_y.y] ## # [4, 8] # [4, 8]
Version data entries
9 entries across 9 versions & 1 rubygems