Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Executable-library/PicoLisp/executable-library-2.l
Normal file
11
Task/Executable-library/PicoLisp/executable-library-2.l
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/picolisp /usr/lib/picolisp/lib.l
|
||||
|
||||
(load "hailstone.l")
|
||||
|
||||
(let Len NIL
|
||||
(for N 100000
|
||||
(accu 'Len (length (hailstone N)) 1) )
|
||||
(let M (maxi cdr Len)
|
||||
(prinl "The hailstone length returned most often is " (car M))
|
||||
(prinl "It is returned " (cdr M) " times") ) )
|
||||
(bye)
|
||||
Loading…
Add table
Add a link
Reference in a new issue