Scala: A Reverse Polish Notation (RPN) calculator written with foldLeft
alvinalexander.com » Scala
by
2w 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
1M 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
1M 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
A Unix shell script to clean all SBT subdirectories
alvinalexander.com » Scala
by
1M ago
Sadly, I forgot to check the before and after disk space comparison, so I can only guess that it helped by deleting all the SBT project and target subdirectories it generates. project directories, and run the ..read more
Visit website
Expanding on Adam Warski’s flatMap example (Set, case statements, function literal)
alvinalexander.com » Scala
by
2M ago
shared code similar to this image during (To see his exact code, see that video ..read more
Visit website
Free online Scala 3 video training courses
alvinalexander.com » Scala
by
2M ago
As always, these videos are sponsored by Ziverge software consulting (specializing in Rust, Scala, and ZIO ..read more
Visit website
Eugenio Moggi, monads, and functional programming
alvinalexander.com » Scala
by
2M ago
, I wanted to take more of a formal look at monads in functional programming. So after some research on my own, I asked ChatGPT to summarize the work of Eugenio Moggi on monads, and got the following information, which I have edited slightly. ’s work on monads in computer programming, particularly in his 1989 paper titled “ (PDF),” introduced a foundational concept that has had a profound impact on functional programming and the handling of computational effects. Here is a summarized overview of his work ..read more
Visit website

Follow alvinalexander.com » Scala on FeedSpot

Continue with Google
Continue with Apple
OR