lens icon indicating copy to clipboard operation
lens copied to clipboard

Add isomorphism between positive integers and lists of digits

Open jackfirth opened this issue 10 years ago • 0 comments

Should accept a base and return an isomoprhism lens

> (lens-view (positive-integer->digits-lens 10) 123) ; base 10
'(1 2 3)
> (lens-view (positive-integer->digits-lens 2) 123) ; base 2
'(1 1 1 1 1 1 1)

jackfirth avatar Dec 04 '15 23:12 jackfirth