diff options
Diffstat (limited to '2048/DEPENDENCIES/flip.sci')
-rw-r--r-- | 2048/DEPENDENCIES/flip.sci | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/2048/DEPENDENCIES/flip.sci b/2048/DEPENDENCIES/flip.sci new file mode 100644 index 000000000..c19564c9a --- /dev/null +++ b/2048/DEPENDENCIES/flip.sci @@ -0,0 +1,4 @@ +// 10.5
+function b = flip(a)
+b = a(length(a):-1:1);
+endfunction;
|