senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. うらひと@同人プログラマー (urahitosolution@qiitadon.com)'s status on Saturday, 07-Jul-2018 10:23:34 JST うらひと@同人プログラマー うらひと@同人プログラマー

    IEnumerable<int> EncodeToInt(IEnumerable<int> list, string barcode){
    // チェックディジットは数値であることが前提なので、例外は起こします
    // 必要に応じて例外処理を加えて下さい。
    return list.Select(idx => barcode.Substring(idx, 1)) // 文字列を切り出して
    .Select(chr => Integer.Parse(chr)); // 改めて数値リストに変換
    }

    In conversation Saturday, 07-Jul-2018 10:23:34 JST from qiitadon.com permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    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.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.