Pudu programming language
Menu
API reference

Std.EnumMap.isEmpty

1 declaration

fn

isEmpty: &Std.EnumMap.EnumMap[K, V] -> Bool

This is a callable function.

What it does

Whether the domain names any key at all.

A map over an empty domain is legal and holds nothing. It is the one case

where there is no key to ask about, which is why get still needs a domain

that contains its key.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.EnumMapSearch related declarations