This is a simple script to help me see the bytecode when plaing with Scala 3.
All it does is parallelises the calls to javap command that should available if you have JDK installed.
Just Ammonite - https://ammonite.io/
It's excellent.
This is a simple script to help me see the bytecode when plaing with Scala 3.
All it does is parallelises the calls to javap command that should available if you have JDK installed.
Just Ammonite - https://ammonite.io/
It's excellent.
Manual installation worked for me. Note, that I have installed Insomnia on Fedora using snap.
cd /home/user/snap/insomnia/current/.config/Insomnia/pluginsinsomnia-plugin-default-headers plugin):| import scala.util.{Try, Success, Failure} | |
| def f(s: String): Try[Int] = Try { s.toInt } | |
| def g(i: Int): Try[Int] = Try { i * 2 } | |
| def unit[T](v: T): Try[T] = Success(v) | |
| //val v = "1" | |
| val v = "bad" | |
| val m = Success(v) |