Sha256: 40d71563198daf55f76b6a9ea41be5e5a537598b5b58bb13f76ba6027b2702f1

Contents?: true

Size: 301 Bytes

Versions: 6

Compression:

Stored size: 301 Bytes

Contents

curry = (f) ->
  curry$ f # using util method curry$ from livescript

flip = (f, x, y) --> f y, x

fix = (f) ->
  ( (g, x) -> -> f(g g) ...arguments ) do
    (g, x) -> -> f(g g) ...arguments

apply = (f, list) -->
  f.apply null, list

#? memoize, wrap

module.exports = {
  curry, flip, fix, apply
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
conjur-asset-ui-1.3.2 vendor/prelude-ls/src/Func.ls
conjur-asset-ui-1.3.1 vendor/prelude-ls/src/Func.ls
conjur-asset-ui-1.3.0 vendor/prelude-ls/src/Func.ls
conjur-asset-ui-api-1.2.0 vendor/prelude-ls/src/Func.ls
conjur-asset-ui-api-1.1.1 vendor/prelude-ls/src/Func.ls
conjur-asset-ui-api-1.1.0 vendor/prelude-ls/src/Func.ls