Skip to content

Commit

Permalink
remove value from Arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Hofmann-Hicks committed Nov 4, 2017
1 parent aafc182 commit 26ae7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
10 changes: 0 additions & 10 deletions src/Arrow/Arrow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ test('Arrow type', t => {
t.end()
})

test('Arrow value', t => {
const f = constant('dat function')
const a = Arrow(f)

t.ok(isFunction(a.value), 'is a function')
t.equal(a.value()(), f(), 'provides the wrapped function')

t.end()
})

test('Arrow runWith', t => {
const f = sinon.spy(identity)
const a = Arrow(f)
Expand Down
7 changes: 2 additions & 5 deletions src/Arrow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ function Arrow(runWith) {
throw new TypeError('Arrow: Function required')
}

const value =
() => runWith

const inspect =
() => `Arrow${_inspect(value())}`
() => `Arrow${_inspect(runWith)}`

const id =
_id
Expand Down Expand Up @@ -89,7 +86,7 @@ function Arrow(runWith) {
}

return {
inspect, type, value, runWith,
inspect, type, runWith,
id, compose, map, contramap,
promap, first, second, both
}
Expand Down

0 comments on commit 26ae7a1

Please sign in to comment.