Re: Discuss changing the behaviour of append()

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

Jim, just out of curiosity, did you consider this style of implementation? ...

if atom(val[a]) then 
    val[target] = val[a] & {val[b]} 
else 
    val[target] = append(val[a], val[b]) 
end if 

I didn't. Should I change it to this? Is it better than append({val[a]}, val[b]) ?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu