2l: Container from Container

+malt

A +map from a +list.

Produces a +map from a +list .a.

Accepts

.a is a +list.

Produces

A +map.

Source

++  malt                                                ::  map from list
  |*  a=(list)
  (molt `(list [p=_-<.a q=_->.a])`a)

Examples

> (malt [['ok' 'no'] ['a' 'b'] ['x' 'y'] ~])
[n=[p='x' q='y'] l={[p='a' q='b'] [p='ok' q='no']} r={}]
> (malt ~[[1 2 3] [4 5 6] [7 8 9]])
[n=[p=1 q=[2 3]] l={[p=4 q=[5 6]] [p=7 q=[8 9]]} r={}]

+molt

A +map from pair +list.

Produces a +map from a +list of pairs .a.

Accepts

.a is a +list of pairs.

Produces

A +map.

Source

Examples

Discussion

Only used internally as a helper to +malt.


+silt

A +set from a +list.

Produces a +set from a +list .a.

Accepts

.a is a +list.

Produces

A +set.

Source

Examples


Last updated