mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
chore: add DefBody::pre_block
This commit is contained in:
parent
57d3a23aed
commit
b33ce38ed5
9 changed files with 361 additions and 196 deletions
|
@ -259,6 +259,11 @@ pub trait Stream<T>: Sized {
|
|||
fn retain(&mut self, f: impl FnMut(&T) -> bool) {
|
||||
self.ref_mut_payload().retain(f);
|
||||
}
|
||||
|
||||
fn concat(mut self, other: Self) -> Self {
|
||||
self.extend(other.payload());
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue