feat: add length function.
This commit is contained in:
parent
49bacbffde
commit
fef10b5736
1 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,13 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp {
|
|||
(cons (cons (car lst) (car s)) (cdr s)))))
|
||||
"""
|
||||
);
|
||||
this["length"] = e.eval(
|
||||
"""
|
||||
(lambda
|
||||
(lst n)
|
||||
(if (null lst) n (length (cdr lst) (+ n 1))))
|
||||
"""
|
||||
);
|
||||
this["qsort"] = e.eval(
|
||||
"""
|
||||
(lambda
|
||||
|
|
Loading…
Add table
Reference in a new issue