却说孙坚被刘表围住,亏得程普、黄盖、韩当三将死救得脱,折兵大半,夺路引兵回江东。自此孙坚与刘表结怨。
且说袁绍屯兵河内,缺少粮草。冀州牧韩馥,遣人送粮以资军用。谋士逢纪说绍曰:“大丈夫纵横天下,何待人送粮为食!冀州乃钱粮广盛之地,将军何不取之?”绍曰:“未有良策。”纪曰:“可暗使人驰书与公孙瓚,令进兵取冀州,约以夹攻,瓚必兴兵。韩馥无谋之辈,必请将军领州事;就中取事,唾手可得。”绍大喜,即发书到瓚处。瓚得书,见说共攻冀州,平分其地,大喜,即日兴兵。
绍却使人密报韩馥。馥慌聚荀谌、辛评二谋士商议。谌曰:“公孙瓚将燕、代之众,长驱而来,其锋不可当。兼有刘备、关、张助之,难以抵敌。今袁本初智勇过人,手下名将极广,将军可请彼同治州事,彼必厚待将军,无患公孙瓚矣。”韩馥即差别驾关纯去请袁绍。长史耿武谏曰:“袁绍孤客穷军,仰我鼻息,譬如婴儿在股掌之上,绝其乳哺,立可饿死。奈何欲以州事委之?此引虎入羊群也。”馥曰:“吾乃袁氏之故吏,才能又不如本初。古者择贤者而让之,诸君何嫉妒耶?”耿武叹曰:“冀州休矣!”于是弃职而去者三十余人。独耿武与关纯伏于城外,以待袁绍。
{注释1:袁绍,字本初。是汉末群雄之一,以勇猛著称,后成为三国时期魏国的奠基人。
注释2:河内,指今河南省武陟县一带地区。当时位于黄河以北,是袁绍屯兵的地方。公孙瓒,字伯圭,冀州牧韩馥的部将,因与刘表有矛盾而引起战事。
注释3:程普、黄盖、韩当,均为东汉末年著名的武将,他们为孙坚出谋划策并救其于危难之中。
注释4:刘表,字景升,荆州牧,刘备之兄,与孙坚结怨。
注释5:冀州牧,是古代地方行政区划的一种,负责该地的政务和军事。韩馥,字飞燕,冀州牧,派遣军队支援袁绍,却最终被袁绍攻占。
注释6:逢纪,袁绍的谋士,提出让袁绍攻击冀州的建议。
注释7:公孙瓒,字伯珪,冀州牧韩馥的部将,建议联合进攻冀州。
注释8:刘备,三英之一,后来成为蜀汉的创始人。
注释9:关纯,袁绍的部下,请求袁绍治理冀州,但被韩馥拒绝。}import java.util.stream.StreamSupport;
object Queues {
/**
- @param stream the Stream
- @param queue a queue of objects
- @return a queue of objects
- @throws java.lang.IllegalArgumentException
*/
def apply(stream: StreamSupport[Any], queue: Any): Unit = {
val result = new ArrayBufferAny //
val iter = stream.iterator() //
var i = 0 //
while (iter.hasNext) { //
val item = iter.next() //
if (item == null) { break } //
result.append(item) //
i += 1 //
}
result.toArray //
queue.addAll(result)
}
/**
- @param stream the Stream
- @return the number of elements in the Stream
- @throws java.lang.IllegalArgumentException
*/
def count(stream: StreamSupport[Any]): Int = {
val result = stream.count //
result
}
/**
- @param stream the Stream
- @return the first element of the Stream
- @throws java.lang.IllegalArgumentException
*/
def take(stream: StreamSupport[Any]): Any = {
val result = stream.take //
result
}
/**
- @param stream the Stream, and the index to begin at
- @param startIndex the index to begin at
- @param endIndex the index to end at
- @return the sub-sequence of the Stream from the startIndex to the endIndex
- @throws java.lang.IllegalArgumentException
*/
def range(stream: StreamSupport[Any], startIndex: Int, endIndex: Int): StreamSupport[Any] = {
val result = stream.range //
result
}
}
”`