JavaScript
Assign the same operation to different variables

by Benny Neugebauer

const [alice_ident, bob_ident] = [0, 1].map(() => Proteus.keys.IdentityKeyPair.new());

const alice_ident = Proteus.keys.IdentityKeyPair.new();
const bob_ident = Proteus.keys.IdentityKeyPair.new();