Blogs tagged scala
-
When it comes to software programming, learning anything new expands problem-solving skills, and the purpose of this post is to instil a different way of thinking on what a computer can do for you. Prolog comes from the ‘70s initially for... Read More »1Comment3Likes -
Answer Set Programming (ASP) is a software paradigm that can be used to represent knowledge and to solve combinatorial and information-intensive problems. Combinatorial search problems are those believed to not have an efficient way to reduce the... Read More »3Comments0Likes -
Bayesian Network Builder I’m pleased to announce that Bayesian Network Builder is now open-source on Github! It is a utility I made when I implemented Zefiro – the autonomous driver of purchase journeys – and now, departed from its parent... Read More »0Comments3Likes -
Santiago Monrobé Gutierrez posted on February 15, 2016El camino recorrido hasta ahora: Big data en SAP. Introducción. Big data en SAP. Hana + Hadoop. Última entrada sobre Big Data.En esta ocasión nos centraremos en un producto que SAP, ha licenciado exclusivamente para el... Read More »2Comments4Likes -
Test code: class Prefixer(val prefix: String){ def addPrefix(s: String)(p: Prefixer) = p.prefix + s } Consumer code: val myImplicitPrefixer = new Prefixer("***") println(myImplicitPrefixer.addPrefix("abc")(myImplicitPrefixer)) // returns... Read More »0Comments0Likes -
Note: This blog is written based on Scala 2.11.7. Any codes directly written in the class implementation in Scala will be considered as constructor code, for example below. When an instance of test is created, the constructor is called. Nothing... Read More »0Comments0Likes -
Conclusion Can you correctly give the output of these two function call, way1() and way2()? Answer: Check the generated Java code for way1 and way2 and you can find the reason. I use the number to indicate the execution sequence. For... Read More »0Comments0Likes -
Consider this example below: You will get the following output in Console: The two console.log tries to simulate some expensive calculation task. Here although the branch for z has actually no chance to execute, however the expression is... Read More »0Comments0Likes -
Before we start to research tail recursion, let’s first have a look at the normal recursion. A simple factorial implementation by recursion: function factorial(n){ if(n ===1) { return 1; } return n *factorial(n -1); } Let N =... Read More »1Comment4Likes -
Former Member posted on April 4, 2014The SAP HANA cloud database can easily be combined with Play Framework to build modern apps. Today applications UIs are moving to the client-side via JavaScript and mobile clients. This change requires back-ends to produce structured... Read More »4Comments3Likes