From f78541082920d8517db7a35b21b0529590e56553 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 29 Nov 2024 12:42:39 -0800 Subject: [PATCH] fix method name in spec intro (#75) --- spec.emu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.emu b/spec.emu index 62f6885..a37da9a 100644 --- a/spec.emu +++ b/spec.emu @@ -13,7 +13,7 @@ contributors: Jonas Haukenes, Daniel Minor

Introduction

Given a `key` and a value, the `getOrInsert` method will return the existing value if it exists, or otherwise insert the provided default value and return that value.

-

Similarly, given a `key` and a callback function, the `getOrInsert` method will return the existing value if it +

Similarly, given a `key` and a callback function, the `getOrInsertComputed` method will return the existing value if it exists, or otherwise insert the returned value of the callback function, and return that value.