mirror of
https://github.com/fluencelabs/examples
synced 2025-06-27 16:51:33 +00:00
19 lines
254 B
Rust
19 lines
254 B
Rust
![]() |
use fluence::fce;
|
||
|
|
||
|
#[fce]
|
||
|
pub struct Echo {
|
||
|
pub echo: String,
|
||
|
}
|
||
|
|
||
|
#[fce]
|
||
|
pub fn echo(inputs: Vec<String>) -> Vec<Echo> {
|
||
|
inputs
|
||
|
.iter()
|
||
|
.map(|s| Echo {
|
||
|
echo: s.to_string(),
|
||
|
})
|
||
|
.collect()
|
||
|
}
|
||
|
|
||
|
fn main() {}
|