Sha256: 65623a2ec83ec10267c413c68c1ed8a956182e1272e70f8aeaa573bad492f646
Contents?: true
Size: 231 Bytes
Versions: 9
Compression:
Stored size: 231 Bytes
Contents
# frozen_string_literal: true require_relative "setup" require "ryo" point_x = Ryo(x: 5) point_y = Ryo({y: 10}, point_x) point = Ryo({ multiply: Ryo.fn { |m| [x * m, y * m] } }, point_y) p point.multiply.call(2) ## # [10, 20]
Version data entries
9 entries across 9 versions & 1 rubygems