Re: Discuss changing the behaviour of append()

new topic     » goto parent     » topic index » view thread      » older message » newer message
gimlet said...

The proposed change would require that append be

   fn(obj, obj) -> seq 
which 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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu