Skip to content

dcoles/jsonnet-functools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonnet-functools

Functional programming extras for Jsonnet

Functions

functools.repeat(x, n)

Repeat a value x, n-times.

functools.cycle(xs, n)

Repeat a cycle of values xs, n-times.

functools.zip(xs, ys)

Zip together two arrays into an array of arrays.

functools.all(xs)

Returns true iff all values in an array xs are true.

Short-circuts on first false value found.

functools.any(xs)

Returns true iff one (or more) values in an array xs is true.

Short-circuts on first true value found.

functools.apply(func, args)

Apply args to function fn.

Licence

Apache License 2.0.

See LICENCE.

About

Functional programming extras for Jsonnet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published