Element - Z
- Zip
Characters:
Z
Description
Zip two lists or Zip a with b mapped over a. Fills with 0s if needed.
Overloads
any-any
-zip(a,b)
any-fun
-zip(a,map(b,a)) (zipmap, map and zip)
Examples
⟨1|2⟩ ⟨3|4⟩ Z
=⟨⟨1|3⟩|⟨2|4⟩⟩
`abc` ⟨1|2|3⟩ Z
=⟨⟨`a`|1⟩|⟨`b`|2⟩|⟨`c`|3⟩⟩
`abc` `d` Z
=⟨⟨`a`|`d`⟩|⟨`b`|0⟩|⟨`c`|0⟩⟩
`d` `abc` Z
=⟨⟨`d`|`a`⟩|⟨0|`b`⟩|⟨0|`c`⟩⟩
123 `45` Z
=⟨⟨1|`4`⟩|⟨2|`5`⟩|⟨3|0⟩⟩