aboutsummaryrefslogtreecommitdiff
path: root/impls/bsearch-gen.el
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-29 15:43:17 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-29 15:43:17 +0530
commit4359caa3ca15c75c4241d869259af3be8cc8375f (patch)
tree7ccb8c1dc8f8846adddf6e67d4912cf6f4aaab62 /impls/bsearch-gen.el
parentd30043274d010e3246946166a5d7e81cb583038a (diff)
downloadalgorithms-4359caa3ca15c75c4241d869259af3be8cc8375f.tar.gz
algorithms-4359caa3ca15c75c4241d869259af3be8cc8375f.tar.bz2
algorithms-4359caa3ca15c75c4241d869259af3be8cc8375f.zip
Moved implementations to folder
Diffstat (limited to 'impls/bsearch-gen.el')
-rw-r--r--impls/bsearch-gen.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/impls/bsearch-gen.el b/impls/bsearch-gen.el
new file mode 100644
index 0000000..79aac56
--- /dev/null
+++ b/impls/bsearch-gen.el
@@ -0,0 +1,9 @@
+(defconst *LIST-SIZE* 128)
+(defconst *UPPER-BOUND* 1024)
+(with-current-buffer (find-file "bsearch.txt")
+ (mapcar
+ #'(lambda (res) (insert (format "%s\n" res)))
+ (cl-loop
+ for i from 0 to *LIST-SIZE*
+ collect
+ (random *UPPER-BOUND*))))