所以我安装了zsh
和iTerm 2
,每次打开iTerm 2
时都会收到此消息:
/Users/jeitnier/.rvm/scripts/rvm:81: parse error near 'unset'
我想要修改.zshrc
和其他任何.bash_profile
,.bashrc
& .profile
个export PATH
个文件,并确保$PATH
所有rvm
个调用都会被rvm get head --auto-dotfiles
包裹起来,但会修复它。但
我已经通过List<MyObj> objs = ... // <- lot of objs
List<MyObj> objsThatAreA = new ArrayList<>();
List<MyObj> objsThatAreB = new ArrayList<>();
for (MyObj obj : objs) {
if (isA(obj)){
objsThatAreA .add(obj);
} else if isB(obj))
objsThatAreB.add(obj);
}
// Others are "discarded" Can be C,D,E and so on, but all are exclusive, can only be in one state.
}
重新安装// Can this be done O(n)?
Stream<MyObj> objStream = objs.stream();
Stream<MyObj> objsThatAreA = objStream.filter(o -> isA(i));
Stream<MyObj> objsThatAreB = objStream.filter(o -> isB(i));
。
没有任何作用。我还能尝试什么?