ff-notes / ron

Haskell implementation of RON and RON-RDT
BSD 3-Clause "New" or "Revised" License
65 stars 9 forks source link

RGA: Add insert operations #58

Closed cblp closed 5 years ago

cblp commented 5 years ago

This change is Reviewable

willbasky commented 5 years ago

ron-rdt/lib/RON/Data/RGA.hs, line 27 at r2 (raw file):

    , insertText
    , insertTextAfter
    , insertTextAtBegin

Может быть, будет полезна функция, которая в конец вставляет, после всего? Типа insextAtEnd.

willbasky commented 5 years ago

prelude/Prelude.hs, line 172 at r2 (raw file):


replicate3 :: Applicative m => m a -> m (a, a, a)
replicate3 ma = (,,) <$> ma <*> ma <*> ma

Для чего нужны эти функции?