It is the best way to understand i think. var query = Enumerable .Range(1, 10) .SelectMany(ints => Enumerable.Range(1, 10), (a, b) => $"{a} * {b} = {a * b}") .ToArray(); Console.WriteLine(string.Join(Environment.NewLine, query)); Console.Read(); ...
collect // Output res1: Array[(String, Int, Int)] = Array((Bob,35,60000), (Charlie,45,80000), (Dave,55,100000)) In the above code, we are using the filter function to filter out only the customers whose age is greater than 30 and whose income is greater than 50000. The ...
Example <movie><title>Sample Movie</title></movie> <xs:element name=”title” type=”xs:string”/> Relationship Between XML, HTML and SGML Now that we know the key points of HTML and XML difference, let’s compare XML and HTML along with SGML to gain a better understanding of how the...
In Cassandra sind Sorted String Tables (SSTables) die grundlegende Speichereinheit, die verwendet wird, um Daten auf der Festplatte zu speichern. Eine SSTable ist eine Datei, die einen sortierten Satz von Schlüssel-Werte-Paaren für eine bestimmte Spaltenfamilie (Tabelle) und Partition enthält...
valstudentRegister:Map[Int,String] =Map(1->"John",2->"Mary")defgetStudentName(studentRegister:Map[Int,String], roll:Int):Option[String] = { studentRegister.get(roll) }defprintStudent(student:Option[String]):Unit= { studentmatch{caseSome(str) => println("Student Name is %s".format(str...