---
name: "AtteanX::Functions::CompositeMaps"
section: "3pm"
platform: "linux"
package: "libattean-perl"
version: "0.035-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/AtteanX::Functions::CompositeMaps"
---

# AtteanX::Functions::CompositeMaps(3pm)

Functions and aggregates to work with composite maps

## NAME

AtteanX::Functions::CompositeMaps - Functions and aggregates to work with composite maps

## VERSION

This document describes AtteanX::Functions::CompositeMaps version 0.032

## SYNOPSIS

```
  use v5.14;
  use Attean;
```

## DESCRIPTION

This is a utility package that defines functions and aggregates to work with composite map datatypes.

- lex\_to\_map($literal)

  Parses `$literal` as a cdt:Map value and returns a hash of stringified keys and term object values. Use `"lex_to_maplist"` to get a list of key-value pairs in which the keys are also term objects.

- map\_to\_lex(@terms)

  - mapCreate(@list)

  - is\_valid\_map\_key( $value )

  Returns true if `$value` is a valid map key (is an IRI or a literal), false otherwise.

- "mapGet($list, $key)"

  - mapKeys($map)

  - map\_key\_to\_term( @keys )

  Converts each argument from the stringified version of map keys used as hash keys to a list of term objects.

- lex\_to\_maplist()

  Parses `$literal` as a cdt:Map value and returns a (flattened) list of key-value pairs of term values.

- "mapPut($map, $key, $value)"

  - "mapRemove($map, $key)"

  - mapSize($list)

  - "mapContains($map, $term)"

  - "mapMerge($map1, $map2)"

  - mapCreate\_agg\_start()

  - "mapCreate\_agg\_process($thunk, $key, $value)"

  - mapCreate\_agg\_finalize($thunk)

  - register()

  ## BUGS

Please report any bugs or feature requests to through the GitHub web interface at \<https://github.com/kasei/attean/issues\>.

## SEE ALSO

## AUTHOR

Gregory Todd Williams  `"<gwilliams@cpan.org>"`

## COPYRIGHT

Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
