Macro we_cdk::take

source ·
macro_rules! take {
    ($bytes:expr, $n:expr) => { ... };
}
Expand description

Returns the first N characters/bytes of the string/binary

§Usage

use we_cdk::*;

#[action]
fn _constructor() {
    let result: Binary = take!(&[0, 1, 2, 3, 4, 5], 1);
}