I have seen newlisp 10.7.5 in the development folder...
A reply from Lutz can solve my question :-)
cameyo
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
(define (factor-group x)
(letn (fattori (factor x)
unici (unique fattori))
(transpose (list unici (count unici fattori)))))
(factor-group 2000)
;-> ((2 4) (5 3))
(factor-group 232792560)
;-> ((2 4) (3 2) (5 1) (7 1) (11 1) (13 1) (17 1) (19 1))
(map pow '(2 1) '(3 4))
;-> (8 1)
(setq lst '((2 1) (3 4)))
(map pow lst)
ERR: value expected in function pow : '(2 1)
(map (curry apply pow) lst)
;-> (2 81)
(map (curry apply pow) (transpose lst))
;-> (8 1)
(map (lambda(x) (apply pow x)) (transpose lst))
;-> (8 1)
(define (mypow lst)
(if (null? lst) '()
(cons (pow (nth '(0 0) lst) (nth '(0 1) lst)) (mypow (rest lst)))
)
)
(setq lst '((2 1) (3 4)))
(mypow (transpose lst))
;-> (8 1)
(map max '(3 5) '(2 7))
;-> (3 7)
(map (curry apply max) '((3 5) (2 7)))
;-> (5 7)
(map (curry apply max) (transpose '((3 5) (2 7))))
;-> (3 7)
Example
<NotepadPlus>
<UserLang name="newLISP" ext="lsp" udlVersion="2.1">
...
</UserLang>
</NotepadPlus>
<Command name="newLISP Help" Ctrl="yes" Alt="yes" Shift="no" Key="112">chrome file:///C:/Program%20Files%20(x86)/newlisp/newlisp_manual.html#$(CURRENT_WORD)</Command>
Example
<UserDefinedCommands>
<Command name="newLISP Help" Ctrl="yes" Alt="yes" Shift="no" Key="112">chrome file:///C:/Program%20Files%20(x86)/newlisp/newlisp_manual.html#$(CURRENT_WORD)</Command>
</UserDefinedCommands>