[erlang-questions] Proposal: add lists:intersperse/2 and lists:intercalate/2

Richard A. O'Keefe ok@REDACTED
Thu Mar 10 00:41:14 CET 2016



On 9/03/16 11:27 pm, Chandru wrote:
>
> I looked up the definition and while I couldn't find one which 
> restricts the insertion to ONE thing, it certainly doesn't say it is 
> the repeated insertion into a sequence, so clearly intercalate is the 
> wrong choice here.
OED sense 1:
    To insert (an additional day, days, or month) in the calendar in 
order to bring
    the current reckoning of time into harmony with the natural solar year.
    [The Gregorian calendar inserts ONE day into the year.
     The Hebrew calendar inserts ONE month into the year.
     Some lunar calendars insert ONE day into a month to catch up with
     what the real moon is doing.]

OED sense 2:
    To insert or interpose something additional, extraneous, or out of 
the ordinary
    course, between the ordinary members of any series or the successive 
parts of any whole
    [One of the examples actually refers to inserting ONE letter into a 
word.]





More information about the erlang-questions mailing list