Added directfs
Added a very rudimentary file I/O system suitable for experimenting with the language further. A better one will be designed when we have sensible error management.
This commit is contained in:
@@ -287,6 +287,7 @@ fn vec_to_single(
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn expr_slice_location(v: &[impl AsRef<Location>]) -> Location {
|
||||
v.first()
|
||||
.map(|l| l.as_ref().clone().to(v.last().unwrap().as_ref().clone()))
|
||||
|
||||
Reference in New Issue
Block a user