alvinalexander.com » Scala
563 FOLLOWERS
This website, alvinalexander.com, was created by Alvin J. Alexander. It's a website where Alvin J. Alexander shares various thoughts and write tutorials on technical topics. Follow this blog for tutorials about the Scala programming language.
alvinalexander.com » Scala
3d ago
FAQ: How can I use the to match multiple possible patterns in a As shown in the following example, you can use the checks to see if a starts with the prefix (or substring) you specify, so although in these examples I use complete strings, you can also use regular expression patterns ..read more
alvinalexander.com » Scala
3d ago
If you’re interested in functional programming, or just want to learn more about data types, generics, pure functions, expression-oriented programming, and functional error handling, I hope this book is helpful. Learn Functional Programming The Fast Way! , is now FREE. I wrote this functional programming book for developers, and you can now download it for free here ..read more
alvinalexander.com » Scala
3d ago
How do I ’re-run with -deprecation’ or ’re-run with -feature’? , I get warning messages like these ..read more
alvinalexander.com » Scala
3d ago
As a brief note today, when you’re using SBT and its build.sbt file with Scala projects, use in library dependencies when referring to Scala-specific libraries, and use only one character when referring to other JVM dependencies, like Java dependencies. Here are some examples of this syntax ..read more
alvinalexander.com » Scala
3d ago
As a brief example here today, the following source code shows one way to read a file using and then print its output to the console ..read more
alvinalexander.com » Scala
2w ago
See that page for a full list of examples, but for my own use, here are a few of them. examples, see the test files in the project, including this . That file currently shows a number of good ScalaJ-HTTP examples, including GET, POST, and redirect examples with ..read more
alvinalexander.com » Scala
2w ago
You can square a number in Scala in at least two different ways: , such as squaring an ..read more
alvinalexander.com » Scala
2w ago
Some common use cases of type looks like in the Scala type hierarchy (image courtesy of type is called a , which means it is a sub-type of every other type in the Scala type system. It is also specifically a data type that has no instances ..read more
alvinalexander.com » Scala
3w ago
In its most basic use, the Scala if/then/else syntax is very similar to Java ..read more
alvinalexander.com » Scala
1M ago
You don’t have to read it all yet, but some of that discussion is shown in this image: Learn You a Haskell for Great Good! . In that chapter, the author describes a “Reverse Polish Notation” (RPN) calculator. If you ever used an old Hewlett-Packard (HP) calculator, you might know what that is. (At least that’s where I first learned about RPN ..read more