summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriton <riton@riton.home>2025-03-26 22:03:04 +0300
committerriton <riton@riton.home>2025-03-26 22:03:04 +0300
commitf5f425a4cdd5c19049743c02c8aa29e027a60026 (patch)
treec916ba5e7d109ec6f7393a2c206e2c1bcc8d613e
parent37406afc307f25d2f3670e746c2af6aed5284e1f (diff)
dosya okumadan metinden okur yapma
-rw-r--r--okur.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/okur.lisp b/okur.lisp
index 759ac16..108d648 100644
--- a/okur.lisp
+++ b/okur.lisp
@@ -31,6 +31,9 @@
(dosya-metni-oku dosya-ismi)
(make-instance 'okur :metin metin :uzunluk uzunluk :dosya-ismi dosya-ismi)))
+(defun metin-okur! (metin)
+ (make-instance 'okur :metin metin :uzunluk (length metin) :dosya-ismi ""))
+
(defmethod son? ((okur okur) index)
(>= index
(uzunluk okur)))