void reverse(String text) {
print('New line: ${text.split(' ').reversed.join(' ')}');
}
void main() {
var a = 'hello world';
reverse(a);
}
Created
October 2, 2020 18:33
-
-
Save Headmast/964a2e19719d2531d817550e9bce151d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Все верно