Top "Lazy-evaluation" questions

be evaluated more than once.

Read a file one line at a time in node.js?

I am trying to read a large file one line at a time. I found a question on Quora that …

javascript node.js file-io lazy-evaluation
hibernate: LazyInitializationException: could not initialize proxy

Here's one that has me perplexed. I'm trying to implement a basic Hibernate DAO structure, but am having a problem. …

hibernate initialization lazy-evaluation
When should I use Lazy<T>?

I found this article about Lazy: Laziness in C# 4.0 – Lazy What is the best practice to have best performance using …

c# .net lazy-evaluation
What does a lazy val do?

I noticed that Scala provide lazy vals. But I don't get what they do. scala> val x = 15 x: Int = 15 …

scala lazy-evaluation
Extract a dplyr tbl column as a vector

Is there a more succinct way to get one column of a dplyr tbl as a vector, from a tbl …

r dplyr lazy-evaluation collect
Zipping streams using JDK8 with lambda (java.util.stream.Streams.zip)

In JDK 8 with lambda b93 there was a class java.util.stream.Streams.zip in b93 which could be used …

lambda functional-programming java-8 lazy-evaluation java-stream
Hibernate could not initialize proxy - no Session

My code retrieves all information related to the user: SessionFactory sessionFactory = HibernateUtilities.configureSessionFactory(); Session session = sessionFactory.openSession(); UserDetails ud = null; …

java hibernate persistence lazy-evaluation lazy-initialization
Lazy evaluation in Python

What is lazy evaluation in Python? One website said : In Python 3.x the range() function returns a special range object …

python python-3.x lazy-evaluation
Do the &= and |= operators for bool short-circuit?

When writing code like this in C++: bool allTrue = true; allTrue = allTrue && check_foo(); allTrue = allTrue && …

c++ boolean lazy-evaluation short-circuiting compound-assignment
Passing a variable name to a function in R

I've noticed that quite a few packages allow you to pass symbol names that may not even be valid in …

r lazy-evaluation