new Show()
The generics Show class. Provides a generic toString method for all data structures which derive from it
- Version:
- 3.0.0
- Source:
Example
const {Type} = require('futils').adt;
const {Show} = require('futils').generics;
const Int = Type('Int', ['value']).
deriving(Show);
const one = Int(1);
one.toString(); // -> 'Int(1)'
one.inspect(); // -> 'Int(1)'