英語版
このページの英語版を見る
std
フォボス全体を一度にインポートできる便利なファイル。
Examples:
import std; int len; const r = 6.iota .filter!(a => a % 2) // 1 3 5 .map!(a => a * 2) // 2 6 10 .tee!(_ => len++) .substitute(6, -6) // 2 -6 10 .sum .reverseArgs!format("Sum: %d"); writeln(len); // 3 writeln(r); // "Sum: 6"
Examples:
import std; writeln(10.iota.map!(a => pow(2, a)).sum); // 1023
Copyright © 1999-2024 by the D Language Foundation
DEEPL APIにより翻訳、ところどころ修正。
このページの最新版(英語)
このページの原文(英語)
翻訳時のdmdのバージョン: 2.108.0
ドキュメントのdmdのバージョン: 2.109.1
翻訳日付 :
HTML生成日時:
編集者: dokutoku