Aardvark.UI


AttributeMap

Functions and values

Function or valueDescription
choose mapping map
Signature: mapping:(string -> AttributeValue<'a> -> Option<AttributeValue<'b>>) -> map:AttributeMap<'a> -> AttributeMap<'b>
Type parameters: 'a, 'b
empty
Signature: AttributeMap<'msg>
Type parameters: 'msg

the empty attributes map

filter predicate map
Signature: predicate:(string -> AttributeValue<'a> -> bool) -> map:AttributeMap<'a> -> AttributeMap<'a>
Type parameters: 'a
map mapping map
Signature: mapping:(string -> AttributeValue<'a> -> AttributeValue<'b>) -> map:AttributeMap<'a> -> AttributeMap<'b>
Type parameters: 'a, 'b
mapAttributes mapping map
Signature: mapping:(AttributeValue<'a> -> AttributeValue<'b>) -> map:AttributeMap<'a> -> AttributeMap<'b>
Type parameters: 'a, 'b
ofAMap map
Signature: map:amap<string,AttributeValue<'msg>> -> AttributeMap<'msg>
Type parameters: 'msg
ofArray arr
Signature: arr:(string * AttributeValue<'msg>) array -> AttributeMap<'msg>
Type parameters: 'msg

creates an attribute-map using all entries from the array (conflicts are merged)

ofArrayCond list
Signature: list:(string * IMod<Option<AttributeValue<'msg>>>) array -> AttributeMap<'msg>
Type parameters: 'msg
ofList list
Signature: list:(string * AttributeValue<'msg>) list -> AttributeMap<'msg>
Type parameters: 'msg

creates an attribute-map using all entries from the list (conflicts are merged)

ofListCond list
Signature: list:(string * IMod<Option<AttributeValue<'msg>>>) list -> AttributeMap<'msg>
Type parameters: 'msg
ofSeq seq
Signature: seq:seq<string * AttributeValue<'msg>> -> AttributeMap<'msg>
Type parameters: 'msg

creates an attribute-map using all entries from the sequence (conflicts are merged)

ofSeqCond seq
Signature: seq:seq<string * IMod<Option<AttributeValue<'msg>>>> -> AttributeMap<'msg>
Type parameters: 'msg
single name value
Signature: name:string -> value:AttributeValue<'msg> -> AttributeMap<'msg>
Type parameters: 'msg

creates an attribute-map with one single entry

toAMap map
Signature: map:AttributeMap<'msg> -> amap<string,AttributeValue<'msg>>
Type parameters: 'msg
union l r
Signature: l:AttributeMap<'msg> -> r:AttributeMap<'msg> -> AttributeMap<'msg>
Type parameters: 'msg

merges two attribute-maps by merging all conflicting values (preferring right)

unionMany list
Signature: list:AttributeMap<'msg> list -> AttributeMap<'msg>
Type parameters: 'msg
Fork me on GitHub