Skip to content

Instantly share code, notes, and snippets.

@kmizu
Created February 27, 2020 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmizu/6630a0677175def758eb1c00b5d66829 to your computer and use it in GitHub Desktop.
Save kmizu/6630a0677175def758eb1c00b5d66829 to your computer and use it in GitHub Desktop.
Matlike example
$ java -jar target/scala-2.13/matlike.jar
> 1
value = 1
> 23
value = 23
> [1 2 3; 4 5 6]
value =
[
1 2 3
4 5 6
]
> [1 2; 3 4; 5 6] + 3
value =
[
4 5
6 7
8 9
]
$ java -jar target/scala-2.13/matlike.jar -e "[1 2 3; 4 5 6]"
[
1 2 3
4 5 6
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment