Array.singleton
Builds an array of length 1. This funtion is intended to provide a functional way of converting a value into an array.
Type
type singleton = <E>(value:E) => E[]
Example
import {singleton} from 'fnxt/array';
singleton(1); // -> [1]