forml.io.dsl.struct.kind.Map

class forml.io.dsl.struct.kind.Map(key, value)[source]

Map data type class.

Abstract constructor.

Parameters
  • key (forml.io.dsl.struct.kind.Any) –

  • value (forml.io.dsl.struct.kind.Any) –

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

count(value, /)

Return number of occurrences of value.

ensure(kind)

Ensure given kind is of our type.

index(value[, start, stop])

Return first index of value.

match(kind)

Check given kind is of our type.

Attributes

key

itemgetter(item, …) –> itemgetter object

value

itemgetter(item, …) –> itemgetter object