Skip to content

Conversation

@i-am-tom
Copy link

With some advice from @garyb, I've added the arrayExtend function (via FFI, needs must), and given Array an Extend implementation. Behaviour is hopefully as expected:

> extend sum [10,5,4,3]
[22,12,7,3]

> extend sum [] :: Array Int
[]

While being defined for `List`, the `Array` primitive didn't previously
have a defined `Extend` instance. This has been added.
@paf31
Copy link
Contributor

paf31 commented May 28, 2017

👍 LGTM!

@garyb
Copy link
Member

garyb commented May 29, 2017

Thanks!

@garyb garyb merged commit efaccc9 into purescript:master May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants