All Questions
5 questions
0
votes
0
answers
38
views
Questions on the lazyload method
I added the lazyload to the image tags. Saw the loading and then the actual image. I was shocked to see the code change (src, lazyloaded) when viewing the source code.
Source code:
<img src="/...
0
votes
2
answers
203
views
How to lazily evaluate a sequence by altering every alternate values in the sequence?
I have implemented a lazy infinite sequence function along with 3 functions called take,reduce,map. the take function is similar to Haskell's implementation where it takes a finite sequence from the ...
6
votes
2
answers
187
views
Equivalent of Scala View in JavaScript
In Scala, view allows preventing creating an entirely new collection.
e.g. In Scala, what does "view" do?
Is there something similar in JavaScript?
My use case:
x = inputValue.split(",")....
2
votes
1
answer
2k
views
how to generate lazy iteration thing in typescript
currently I am still doing this question :
Make a general purpose infinite sequence initialisation function that
creates infinite lazy sequences. It will take as parameter a function
to compute ...
7
votes
1
answer
3k
views
Immutable.js - lazy sequence
I recently heard about Facebook's Immutable.js library (https://github.com/facebook/immutable-js). I am confused about the following from their documentation:
var oddSquares = Immutable.Sequence(1,2,...