String interning riddle

I am struggling with the following riddle of my coworker: public class App1 { public static void main(String[] args) { String s1 = "Ja".concat("va"); // seems to be interned?! String s2 = s1.intern(); System.out.println(s1 == s2); // ...
more »

| java   | string   2017-09-16 22:09 (6) Answers

Haskell defined types

Studying Haskell first principles. Absolute beginner in Haskell. If: data A data B func :: A -> B func = undefined What would the actual function be? Worked though load of exercises with great result (also thanks to you) but again I am stuck....
more »

| haskell   | types   2017-09-16 21:09 (2) Answers