// ---
// title: "Zip Together Two Lists"
// author: "<NAME>"
// date: 2017-12-20T11:53:49-07:00
// description: "Zip Together Two Lists Using Scala."
// type: technical_note
// draft: false
// jupyter:
//   jupytext:
//     text_representation:
//       extension: .scala
//       format_name: light
//       format_version: '1.5'
//       jupytext_version: 1.14.4
//   kernelspec:
//     display_name: Apache Toree - Scala
//     language: scala
//     name: apache_toree_scala
// ---

// ## Create Two Vectors

// Create two vectors
val firstName = Vector("Steve", "Bob", "Jack", "Jill")
val lastName = Vector("Jackson", "Dillan", "Bower", "Stein")

// ## Zip Together Vectors

// Create a new variable that zips the sequences
val fullNames = firstName zip lastName

// View the zipped sequences and convert to a map
fullNames

StarcoderdataJupyterScriptsDedupFiltered