let x = 5;
let y = {
let x = 3;
x + 1
};
println!("x : {}, y : {}", x, y);
// x : 5, y : 4
なるほどおもしろいなぁRust
let x = 5;
let y = (x => x +1)(3);
console.log(`x : ${x}, y : ${y}`);
// x : 5, y : 4
let x = 5;
let y = {
let x = 3;
x + 1
};
println!("x : {}, y : {}", x, y);
// x : 5, y : 4
なるほどおもしろいなぁRust
let x = 5;
let y = (x => x +1)(3);
console.log(`x : ${x}, y : ${y}`);
// x : 5, y : 4
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.