ScalaJ-HTTP examples: GET, POST, handling redirects
alvinalexander.com » Scala
by
5d 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
Visit website
Scala: How to square a number (Int, Double, Float, Long)
alvinalexander.com » Scala
by
5d ago
You can square a number in Scala in at least two different ways: , such as squaring an ..read more
Visit website
Scala: What is the Nothing data type?
alvinalexander.com » Scala
by
5d 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
Visit website
Scala if then else syntax (and returning a value from an if statement)
alvinalexander.com » Scala
by
2w ago
In its most basic use, the Scala if/then/else syntax is very similar to Java ..read more
Visit website
Scala: A Reverse Polish Notation (RPN) calculator written with foldLeft
alvinalexander.com » Scala
by
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
Visit website
How to convert a Scala Array/List/Seq (sequence) to string with mkString
alvinalexander.com » Scala
by
1M ago
A simple way to convert a Scala array to a String is with the to a String? (Or, more, accurately, how do I convert any Scala . (Although I've written "array", the same technique also works with any Scala sequence, including Array, List, Seq, ArrayBuffer, Vector, and other sequence types ..read more
Visit website
Scala: How to convert a String to an Int (Integer)
alvinalexander.com » Scala
by
1M ago
If you need to convert a method, which is available on ..read more
Visit website
Scala: How to write your own collect and map functions
alvinalexander.com » Scala
by
1M ago
As a brief note today, I just wrote a , and wrote it as shown in this code ..read more
Visit website
A Scala cheat sheet (reference page)
alvinalexander.com » Scala
by
2M ago
This page is very much a work in progress, but as I've been learning , I've been creating all sorts of little notes, and I'm now trying to organize them into this Scala cheat sheet. These notes are based on the excellent books, Programming in Scala (Odersky, Spoon, and Venners), and Programming Scala (O'Reilly ..read more
Visit website
The Scala-CLI/Coursier cache location on a Mac/macOS system
alvinalexander.com » Scala
by
2M ago
I don’t know yet if it’s safe to delete anything in that directory/folder, but it’s using 7.2GB of space, so I’m about to look into it ..read more
Visit website

Follow alvinalexander.com » Scala on FeedSpot

Continue with Google
Continue with Apple
OR