Arduino Tutorial for Beginners – How to Install Arduino IDE on Windows 10 + First Sketch
In this post on Arduino Tutorial For Beginners, i will introduce you + How to install Arduino IDE + How […]
In this post on Arduino Tutorial For Beginners, i will introduce you + How to install Arduino IDE + How […]
In this post on Arduino Tutorial For Beginners, i will introduce you about Arduino components: + Microcontroller and Pins + Clock and […]
In this post on Arduino Tutorial For Beginners, i will introduce you some Arduino basic concept in order to know + […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to do Smoothing Images or […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to use Morphological Transformations with […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to use matplotlib with OpenCV. […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to Draw geometric shapes on […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to Read, Write, Show Videos […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to Read, Write, Show Images […]
In this post on OpenCV Python Tutorial For Beginners, I am going to show How to Bind Trackbar To OpenCV […]
SQLite vs MySQL: 16 Must-Know Differences Between The Two Leading Databases There are two types of database management systems, relational […]
This post shows How do I install VirtualBox Guest Additions on Debian 9 so you can resize your Debian 9 […]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// Scala - Reduce, fold or scan (Left/Right) //reduceLeft, reduceRight, foldLeft, foldRight, scanLeft, scanRight object Demo { val lst = List(1, 2, 3, 5, 7, 10, 13); val lst2 = List("A", "B", "C"); def main(args: Array[String]) { println(lst.reduceLeft(_ + _)); println(lst2.reduceLeft(_ + _)); println(lst.reduceLeft((x,y) => {println(x + " , "+ y); x+y;})); println(lst.reduceLeft(_ - _)); println(lst.reduceRight(_ - _)); println(lst.reduceRight((x,y) => {println(x + " , "+ y); x-y;})); println(lst.foldLeft(100)(_ + _)); println(lst2.foldLeft("z")(_ + _)); println(lst.scanLeft(100)(_ + _)); println(lst2.scanLeft("z")(_ + _)); } } |
In this Post we will see How to install Maven on Mac OS. Maven is build tool primary for Java projects. Prerequisites: […]
Jenkins is open source continuous integration server written in Java. Jenkins (https://jenkins.io/) is Easy to install, Easy to use, Multi-technology […]
Copyright © 2021 | WordPress Theme by MH Themes