stringToSwap: string to swap fun

Description Usage Arguments Value Examples

Description

takes a string and produces a swap fun from it. The string is broken allong spaces.

Usage

1

Arguments

x

input string

Value

a function mapping the even values of x to the odd

Examples

1
stringToSwap("a b c d")("b")=="a"

alexjgriffith/CCCA documentation built on May 10, 2019, 8:52 a.m.