Define a function, record, which takes a list of strings, fields, and a list of values, values,
Question:
Define a function, record, which takes a list of strings, fields, and a list of values, values, and returns a procedural representation of record. Write a second procedure, lookup, which takes a procedural representation of record and a string and returns the ith element of the list values if i is the index of name in list fields. For example:
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
An Experiential Introduction To Principles Of Programming Languages
ISBN: 9780262045452
1st Edition
Authors: Hridesh Rajan
Question Posted: