Menu

Show posts

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

Messages - cameyo

#31
newLISP newS / Lisp book
July 27, 2022, 05:21:11 AM
Lisp Book (Croatian language) by Kazimir Majorinc at:

http://monoskop.org/images/c/cb/Majorinc_Kazimir_Mocan_koliko_je_god_moguce.pdf">//http://monoskop.org/images/c/cb/Majorinc_Kazimir_Mocan_koliko_je_god_moguce.pdf



Traslation in english "As Powerful As Possible" at:

https://github.com/amno1/as-powerful-as-possible">//https://github.com/amno1/as-powerful-as-possible
#32
newLISP in the real world / Re: setq '
July 04, 2022, 06:58:37 AM
Solution of my problem:

http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4580">//http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4580
#33
newLISP in the real world / Function as list
July 04, 2022, 06:53:35 AM
https://gist.github.com/cameyo42/13fb05eb49769e5f64913b624507c14e">//https://gist.github.com/cameyo42/13fb05eb49769e5f64913b624507c14e

Can't post code on forum :-(
#34
newLISP newS / Re: newLISP v.10.7.0 Stable Release
June 26, 2022, 05:10:49 AM
deleted
#35
newLISP in the real world / Re: string function
June 15, 2022, 10:20:05 AM
Ok. I am old...and often confused.

Thanks HPW and Ralph.
#36
newLISP in the real world / Re: string function
June 14, 2022, 11:06:25 PM
This is normal:
(string a b)
-> "1020"
(string "a""b")
-> "ab"

This is strange, but you just need to know:
(string ""a""b"")
-> "1020"
#37
newLISP in the real world / string function
June 13, 2022, 10:43:11 PM
Why this?
(setq a 10)
(setq b 20)
(string "'"a" '"b"")
-> "'10 '20"
#38
newLISP in the real world / Re: setq '
June 04, 2022, 10:51:01 AM
Yes.

I know it is wrong, but after:
(setq 'a 3)
> 3

the symbol a is created, but is nil.

Where is the value 3? ;-)
#39
https://github.com/cameyo42/newLISP-Note/blob/master/17-note-libere-9.lsp#L456">//https://github.com/cameyo42/newLISP-Note/blob/master/17-note-libere-9.lsp#L456

(useful for testing purpose)
#40
newLISP in the real world / setq '
June 01, 2022, 09:32:46 AM
(setq 'a 3)
output: 3
a
output: nil


Which symbol is binded with 3?

How to retrieve it?



p.s. it's only a curiosity
#41
newLISP in the real world / Re: List of indexes
May 30, 2022, 10:55:47 AM
Faster solution:
(setq a '(1 (2 (3 4)) (5 6)))
;Indexes
(ref-all nil a (fn (x) true))
((0) (1) (1 0) (1 1) (1 1 0) (1 1 1) (2) (2 0) (2 1))
;Elements
(ref-all nil a (fn (x) true) true)
(1 (2 (3 4)) 2 (3 4) 3 4 (5 6) 5 6)
#42
Solution:

"THIS IS MY NEWLISP SCRIPT THAT EMULATES THE ENIGMA MACHINE FROM WWII."

Code:

https://github.com/cameyo42/newLISP-Note/blob/master/16-note-libere-8.lsp#L4699">//https://github.com/cameyo42/newLISP-Note/blob/master/16-note-libere-8.lsp#L4699
#43
Hint: Enigma machine
#44
Decrypt this message:

"WQGI XH BJ HKOUHVO MWCAAP EEQG JDRPJMVH XQZ KSWSJJ STHSKGL XXLU TOXF."
#45
Anything else we might add? / Forum is broken
April 22, 2022, 03:36:21 AM
I can't post code on this forum.

I hope someone can solve the problem.

Thanks