diff --git a/docs/raw_inv.txt b/docs/raw_inv.txt index fd955239..042df8f1 100644 --- a/docs/raw_inv.txt +++ b/docs/raw_inv.txt @@ -21,6 +21,9 @@ cstring cpp:type 1 https://en.cppreference.com/w/cpp/header/cstring string cpp:type 1 https://en.cppreference.com/w/cpp/header/string sstream cpp:type 1 https://en.cppreference.com/w/cpp/header/sstream fstream cpp:type 1 https://en.cppreference.com/w/cpp/header/fstream +vector cpp:type 1 https://en.cppreference.com/w/cpp/header/vector +map cpp:type 1 https://en.cppreference.com/w/cpp/header/map +limits cpp:type 1 https://en.cppreference.com/w/cpp/header/limits itertools::Itertools rust:trait 1 https://docs.rs/itertools/latest/itertools/trait.Itertools.html itertools::Itertools num_traits::NumAssign rust:trait 1 https://docs.rs/num-traits/latest/num_traits/trait.NumAssign.html num_traits::NumAssign diff --git a/javascript/src/p0021.js b/javascript/src/p0021.js index 1e085e8c..dbaceb65 100644 --- a/javascript/src/p0021.js +++ b/javascript/src/p0021.js @@ -6,7 +6,7 @@ */ exports.p0021 = function() { let answer = 0; - const toCheck = Array.from(...Array(10000).keys()); + const toCheck = [...Array(10000).keys()]; for (const a of toCheck) { const b = d(a); if (a !== b && d(b) === a) {