# Hoogle Search

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

1. containers Data.Map.Internal

The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

```findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x'
findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
```

2. containers Data.Map.Lazy

The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

```findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x'
findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
```

3. containers Data.Map.Strict

The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

```findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x'
findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
```

4. containers Data.Map.Strict.Internal

The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

```findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x'
findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
```

5. net-mqtt Data.Map.Strict.Decaying

No documentation available.

6. nonempty-containers Data.Map.NonEmpty

O(log n). The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

```findWithDefault 'x' 1 (fromList ((5,'a') :| [(3,'b')])) == 'x'
findWithDefault 'x' 5 (fromList ((5,'a') :| [(3,'b')])) == 'a'
```

7. monoidal-containers Data.Map.Monoidal

O(log n). The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

8. monoidal-containers Data.Map.Monoidal.Strict

O(log n). The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.

Page 1 of 1