v0.4.2 (2024-04-01)
Release Notes
New features
-
OwnedIntegerSexp
and etc now havetry_from_iter()
method for constructing
a new instance from an iterator.Example:
#[savvy] fn filter_integer_odd(x: IntegerSexp) -> savvy::Result<Sexp> { // is_na() is to propagate NAs let iter = x.iter().copied().filter(|i| i.is_na() || *i % 2 == 0); let out = OwnedIntegerSexp::try_from_iter(iter)?; out.into() }
-
OwnedIntegerSexp
and etc now havetry_from_slice()
method for constructing
a new instance from a slice or vec. This conversion is and has been possible
viatry_from()
, but this method was added for discoverability. -
OwnedIntegerSexp
and etc now havetry_from_scalar()
method for
constructing a new instance from a scalar value (e.g.i32
). This conversion
is and has been possible viatry_from()
, but this method was added for
discoverability. -
savvy-cli update
andsavvy-cli init
now tries to parse the Rust files
actually declared bymod
keyword.
Download savvy-cli 0.4.2
File | Platform | Checksum |
---|---|---|
savvy-cli-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
savvy-cli-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
savvy-cli-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
savvy-cli-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
savvy-cli-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |