Last active
August 9, 2021 04:20
-
-
Save mono0926/ad031466d1ee8b9632657226aa5d6c46 to your computer and use it in GitHub Desktop.
Dart言語のカスケード記法クイズ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final x = [3, 5, 1]; | |
// それぞれ行の返却値は? | |
x..sort()..map((v) => v * 2); | |
x..sort().map((v) => v * 2); | |
x.sort().map((v) => v * 2); | |
(x..sort()).map((v) => v * 2); | |
// ↓ 正解 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
正解