Sha256: 39e45a0bf0bf594921c10217979d6171622a58e2104d487caf874839b5ee1889
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require_relative '../../lib/mini_kraken/composite/list' module MiniKraken # Mix-in module that provides convenience factory methods. module FactoryComposite # Factory method for constructing a ConsCell # @param obj1 [Term] # @param obj2 [Term] # @return [Core::ConsCell] def cons(obj1, obj2 = nil) Composite::List.cons(obj1, obj2) end # Factory method that build a proper list with given elements def make_list(*elems) Composite::List.make_list(elems) end end # module end # module
Version data entries
4 entries across 4 versions & 1 rubygems