convert: Generator of conversion functions

Description Usage Arguments Value

Description

convert turns a function to convert an item present in list1 to the same index position in list2. For example, if list1 contains ("New York", "Paris", "Tokyo") and list2 contains ("United States", "France", "Japan"), then the function produced will convert city names to country names.

Usage

1
convert(list1, list2)

Arguments

list1

A list of items which can be converted.

list2

A list of items to be converted two. Both list1 and list2 must be of the same length as list1.

Value

A function which can convert objects in list1 to objects in list2.


JonMcEntee/lanename documentation built on May 28, 2019, 3:58 p.m.