Re: Discuss changing the behaviour of append()
- Posted by PeteE Jun 07, 2014
- 4560 views
gimlet said...
The proposed change would require that append be
fn(obj, obj) -> seqwhich makes the test part of append whether you want it or not.
The test is already part of append, and it triggers the error message "first argument of append must be a sequence". Instead of the error, the proposed change will convert the atom to a sequence first and proceed.
I like it.