Questions tagged [iter]
The iter tag has no usage guidance.
2 questions
1
vote
1
answer
91
views
What does range full operator do in borsh serialize?
I follow hackernoon-solana to see the syntax in non anchor project. this is the function signature
pub fn process_instruction(program_id:&Pubkey,accounts:&[AccountInfo],input:&[u8])->...
1
vote
1
answer
48
views
Iterate through Vec data and modify a field
I have the following code. Its a loop of an account's stored Vec that have an address and a number on it structure. Inside the loop, if a vec's address is the payer addres, then I want to substract 1 ...