forml.io.dsl.Map

class forml.io.dsl.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__()

Methods

__init__()

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