src/future/linked.js
function mk_LiteralBunch(k_graph, a_terms) {
	// append local methods to hash
	let h_methods = Object.assign(Object.create(LiteralBunch_prototype), {
		graph: k_graph,
		terms: a_terms,

		// for returning a different sample each time
		sample_counter: 0,
	});

	// construct 'that'
	let f_bound = LiteralBunch_operator.bind(h_methods);

	// make & return operator
	Object.setPrototypeOf(f_bound, LiteralBunch_prototype);
	return Object.assign(f_bound, h_methods);
}
function mk_LiteralBunch(k_graph, a_terms) {
	// append local methods to hash
	let h_methods = Object.assign(Object.create(LiteralBunch_prototype), {
		graph: k_graph,
		terms: a_terms,

		// for returning a different sample each time
		sample_counter: 0,
	});

	// construct 'that'
	let f_bound = LiteralBunch_operator.bind(h_methods);

	// make & return operator
	Object.setPrototypeOf(f_bound, LiteralBunch_prototype);
	return Object.assign(f_bound, h_methods);
}
function mk_LiteralBunch ( k_graph , a_terms ) { // append local methods to hash let h_methods = Object . assign ( Object . create ( LiteralBunch_prototype ) , { graph : k_graph , terms : a_terms , // for returning a different sample each time sample_counter : 0 , } ) ; // construct 'that' let f_bound = LiteralBunch_operator . bind ( h_methods ) ; // make & return operator Object . setPrototypeOf ( f_bound , LiteralBunch_prototype ) ; return Object . assign ( f_bound , h_methods ) ; }
makes a new LiteralBunch
makes a new LiteralBunch