Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

Closures

Posted on September 10, 2015 - September 10, 2015 by margusja

Closures paradigm is amazing. It is supported mainly from functional languages.

Let’s make an example.

function first(x) {

function second(y) {

return x + y

}

return second(y)

}

So calling first(10) we will get return function(y) { return 10 + y}

in example:

add_10 = first(10)

add_10(2) returns 12

Posted in Linux

Post navigation

Bitwise operations
Read logs with Apache-drill

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.