Sha256: 7d4a4ca7da5f39b8badb2a286037634031f12d52db7904e8973ac1fcdfa91dee
Contents?: true
Size: 237 Bytes
Versions: 3
Compression:
Stored size: 237 Bytes
Contents
module Rupture class Cons < Seq attr_reader :first def initialize(first, rest) @first, @rest = first, rest super() end def seq self end def rest @rest ||= Seq::Empty end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rupture-0.3.0 | lib/rupture/cons.rb |
rupture-0.2.1 | lib/rupture/cons.rb |
rupture-0.2.0 | lib/rupture/cons.rb |