【发布时间】:2015-07-21 09:25:18
【问题描述】:
我在 scala 中有一个嵌套结构,我想过滤这个结构,但不知道该怎么做: 主要结构是
currentCustStory = new CustStory(custEvent.custId, custEvent.eventType, custEvent.eventTime.toLong, currentEventStory)
currentEventStory = new mutable.MutableList[StoryEvent]
storyEvent 有 4 个属性。
我想从currenteventstory(属于currentcustStory 的列表)中过滤一些元素,并使用通过过滤器的Story 事件的元素创建一个新的currentcustStory。
有人知道我该怎么做吗? p.s:我是 Scala 的新手
【问题讨论】: