functionaljavascript.blogspot.com
Functional JavaScript: March 2013
http://functionaljavascript.blogspot.com/2013_03_01_archive.html
Each post will cover a specific aspect of functional programming in JavaScript. Friday, March 29, 2013. Implementing Monads in JavaScript. UPDATE: This post has been updated to a new post. All the code has been refactored and redone in the new post. http:/ functionaljavascript.blogspot.in/2013/07/monads.html. And here is how a call to. Var result = doComputations( "a", function(scope) { return 2; }, "b", function(scope) { with (scope) { return a * 3; } }, function(scope) { with(scope) { return a b; } } );.
functionaljavascript.blogspot.com
Functional JavaScript: Implementing Monads in JavaScript
http://functionaljavascript.blogspot.com/2013/03/implementing-monads-in-javascript.html
Each post will cover a specific aspect of functional programming in JavaScript. Friday, March 29, 2013. Implementing Monads in JavaScript. UPDATE: This post has been updated to a new post. All the code has been refactored and redone in the new post. http:/ functionaljavascript.blogspot.in/2013/07/monads.html. And here is how a call to. Var result = doComputations( "a", function(scope) { return 2; }, "b", function(scope) { with (scope) { return a * 3; } }, function(scope) { with(scope) { return a b; } } );.
functionaljavascript.blogspot.com
Functional JavaScript: April 2013
http://functionaljavascript.blogspot.com/2013_04_01_archive.html
Each post will cover a specific aspect of functional programming in JavaScript. Sunday, April 14, 2013. The Promise Monad in JavaScript. UPDATE: This post has been updated to a new post. All the code has been refactored and redone in the new post. http:/ functionaljavascript.blogspot.in/2013/07/monads.html. If you find it difficult to understand whats going on below, read the following posts. Implementing Monads in JavaScript. The monad laws and state monad in JavaScript. Node copy.js infile outfile.
functionaljavascript.blogspot.com
Functional JavaScript: The monad laws and state monad in JavaScript
http://functionaljavascript.blogspot.com/2013/04/the-monad-laws-and-state-monad-in.html
Each post will cover a specific aspect of functional programming in JavaScript. Friday, April 5, 2013. The monad laws and state monad in JavaScript. UPDATE: This post has been updated to a new post. All the code has been refactored and redone in the new post. http:/ functionaljavascript.blogspot.in/2013/07/monads.html. In the previous post. First we define the identityMonad that we use when calling. MUST return a monadic value. eg. the first computation returns. A monadic value. However what gets ass...
lispyscript.blogspot.com
LispyScript: September 2012
http://lispyscript.blogspot.com/2012_09_01_archive.html
Monday, September 10, 2012. Loop - Recur and Tail Call Optimization in LispyScript. Javascript does not have tail call optimisation. Which means recursively calling a function in javascript will eventually blow the stack. Lets look at a simple javascript function that recursively calls itself n number of times. Var count = function(i) { if (i = = 18000) { console.log(i) } else { count( i) } };. Recurring a million times without blowing the stack. If (= i 1000000). Loop (a b count) (1 0 n). If (= count 0).
functionaljavascript.blogspot.com
Functional JavaScript: Functors
http://functionaljavascript.blogspot.com/2013/07/functors.html
Each post will cover a specific aspect of functional programming in JavaScript. Tuesday, July 16, 2013. Consider the function below. Function plus1(value) { return value 1 }. It is just a function that takes an integer and adds one to it. Similarly we could could have another function plus2. We will use these functions later. Function plus2(value) { return value 2 }. And we could write a generalised function to use any of these functions as and when required. F([1, 2, 3], plus1) = '1,2,31'. Is a function...
functionaljavascript.blogspot.com
Functional JavaScript: The Promise Monad in JavaScript
http://functionaljavascript.blogspot.com/2013/04/the-promise-monad-in-javascript.html
Each post will cover a specific aspect of functional programming in JavaScript. Sunday, April 14, 2013. The Promise Monad in JavaScript. UPDATE: This post has been updated to a new post. All the code has been refactored and redone in the new post. http:/ functionaljavascript.blogspot.in/2013/07/monads.html. If you find it difficult to understand whats going on below, read the following posts. Implementing Monads in JavaScript. The monad laws and state monad in JavaScript. Node copy.js infile outfile.
functionaljavascript.blogspot.com
Functional JavaScript: Introduction to Functional JavaScript
http://functionaljavascript.blogspot.com/2013/03/introduction-to-functional-javascript.html
Each post will cover a specific aspect of functional programming in JavaScript. Wednesday, March 27, 2013. Introduction to Functional JavaScript. JavaScript was a functional programming language even before it got its name! For (int i = 0; i. The same for-loop in C. Int i; for (i = 0; i. And the for-loop in JavaScript. For (var i = 0; i. Programming languages are made up of operators, conditional statements, loop statements and functions. Having conditional statements and loop statements are hallmark...
functionaljavascript.blogspot.com
Functional JavaScript: Monads
http://functionaljavascript.blogspot.com/2013/07/monads.html
Each post will cover a specific aspect of functional programming in JavaScript. Thursday, July 25, 2013. All the code for this post are available here. https:/ github.com/santoshrajan/monadjs. Functor from the last chapter. We could use. To iterate over two arrays adding each element of the first to the second. Var result = [1, 2].map(function(i) { return [3, 4].map(function(j) { return i j }) }) console.log(result) = [ [ 4, 5 ], [ 5, 6 ] ]. The type signature of the inner function is. F: int - int.
SOCIAL ENGAGEMENT