python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
STG machine unboxed values handling
I'm learning about lazy functional language evaluation and came across the STG machine. In order to understand it I'm building a small toy compiler for a functional language (to STG).
However there's ...
lav_shaun
Votes: 0
Answers: 1
kotlin lazy toString
Let's say I have a toString method that takes a long time to return a result but its value won't change once it's computed.
The best we have come up with is this (thanks @Tenfour04 for the comment):
c...
Campi
Votes: 0
Answers: 0
Are java streams able to lazilly reduce from map/filter conditions?
I am using a functional programming style to solve the Leetcode easy question, Count the Number of Consistent Strings. The premise of this question is simple: count the amount of values for which the ...
AaronC
Votes: 0
Answers: 1
using zip(*tuple_iterator) without consuming the tuple_iterator at this line
I have a tuple_iterator : Iterator[Tuple[A, B]] and I want to get an iterator_tuple: Tuple[Iterator[A], Iterator[B]]
this can in principle be done using iterator_a, iterator_b = zip(*tuple_iterator)
H...
checkThisOut
Votes: 0
Answers: 2