• Feed
  • Discussions
lazy-evaluation

lazy-evaluation

#lazy-evaluation
0 followers·3 articles

lazy-evaluation

#lazy-evaluation·0 followers·3 articles
lazy-evaluation
Yatin B.
Yatin B.
blogs.stackedmind.com·May 08, 2025
May 08, 2025

Difference Between putIfAbsent() and computeIfAbsent() in Java’s Map

Date: 2024-03-13 Java's Map interface offers putIfAbsent() and computeIfAbsent() methods for adding key-value pairs. putIfAbsent() adds a key-value pair only if the key doesn't exist (or has a null value), employing eager evaluation. computeIfAbsen...

Discuss
putifabsent
Giovanni Laquidara
Giovanni Laquidara
giolaq.dev·Apr 03, 2023
Apr 03, 2023

Functional Programming in Kotlin: Lazy Evaluation

Lazy evaluation is an optimization technique commonly used in functional programming. The basic idea is simple: don't evaluate a function or expression until you actually need its result. This can save time and resources, especially when working with...

Functional Programming in Kotlin: Lazy Evaluation
Discuss·12 likes·641 reads
Functional Programming in Kotlin
Kotlin
Sandeep Korrapati
Sandeep Korrapati
phoenixdev.hashnode.dev·Mar 19, 2023
Mar 19, 2023

Unleashing the Power of JavaScript Generators

Introduction JavaScript, a versatile and constantly evolving language, has witnessed significant improvements over the years. Generators, a powerful but often underused feature added in ES6 (ECMAScript 2015), are one of these changes. In this blog, w...

Discuss·15 reads
JavaScript

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

The Stablecoin Surge: How CryptoXpress Is Leading the Charge Toward Financial Liberation

Naomi Antia Benson·56 reads

CryptoXpress: Because Managing Crypto Shouldn't Feel Like Filing Taxes

Prochino·73 reads

The DePIN Revolution: Mapping the World and Earning Onchain with $WIFI.

Patience Uyire·69 reads

Top commenters this week

Sumayya Irfan
Sumayya Irfan
Taji Abdullah
Taji Abdullah
Rishav
Rishav
Marketer lab
Marketer lab
Astha Sharma
Astha Sharma

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior