Yue Bulu

Results 64 comments of Yue Bulu

I found that using the `random` function to set the seed may not always be effective, as it may be calling the `srand` or `srandom` function underneath, and the behavior...

On Tue, 13 Aug 2019 23:20:30 +0800, Matus Goljer wrote: > > [1 ] > [2 ] > I tried > > (let (var) > (cl-callf '->> var 1 (*...

I think use the form `.a.b.c` like `let-alist` to get nested alist is perfectly well.

What about this? ``` (-let [(&alist (-> "a" "b") value) '((a . (b . 3)))] a) ;; => 3 ```

```Elisp (defun -shuffle1 (list) (let ((source (copy-sequence list)) (random-nums (->> list length (number-sequence 1) (-map #'random) nreverse)) result) (--each random-nums (let* ((part1 (-take it source)) (part2 (-drop it source)) (target...

I'd like to open a PR. But I found that dash.el is in ELPA and `-shuffle1` is 15 lines. I don't have an Emacs Copyright Assignment now. It may takes...

Well, I even don't know how to write a test-example for a shuffle function now.... :joy:

Hello. I got an Emacs Copyright Assignment now. I will reopen a PR to continue this work

What about the progress on this? @Fuco1