prelude-ls icon indicating copy to clipboard operation
prelude-ls copied to clipboard

prelude.ls is a functionally oriented utility library - powerful and flexible, almost all of functions are curried. It is written in, and is the recommended base library for, http://livescript.net

Results 31 prelude-ls issues
Sort by recently updated
recently updated
newest added

Hi all, Currently when I want to check if a string contains a substring, I need to use javascript's `indexOf`, or other tricks. Of course, I always write first `"foo"...

A friend who was starting with LiveScript asked me if Prelude had some implementation of `random` to take random items from an array, as much as this feature is really...

Hi, My proposal is a `map-ok` function, which is identical to `map`, except that returning `undefined` or `null` will remove the element from the output list. The use case is...

As I mistakenly opened the issue in https://github.com/gkz/LiveScript/issues/780 , wouldn't it be useful to have this function in prelude-ls?

### Description **`tap`** applies a function only for its side effects and discards the result, returning the given argument. ### Reasoning `tap` would be really useful for use in big...

For example, `empty []` looks like you're emptying it instead of checking if it's empty. Why not `is-empty []`?

I used the [Fisher–Yates Shuffle](https://bost.ocks.org/mike/shuffle/).

`Func.memoize` is not exported in the main object, even though the docs refer to it as `memoize` rather than `Func.memoize`

I need to extract all values in specific funtions without listing all functions manually It would be good to have something like that Livecscript ``` prelude-ls.extract-all! [1- 10 ] |>...

`fold-obj-to-list` can save an extra `map`: ``` array |> group-by key |> obj-to-pairs |> map ([k, vs]) -> merge k, vs ``` ``` array |> group-by key |> fold-obj-to-list (k,...