diff options
| author | El-BG-1970 <elouan.gros.fr@gmail.com> | 2022-07-27 17:50:07 +0200 |
|---|---|---|
| committer | El-BG-1970 <elouan.gros.fr@gmail.com> | 2022-07-27 17:50:07 +0200 |
| commit | bf191a6f96f19adc74879bc543da3a7027c498da (patch) | |
| tree | d493855e8af162f130938d4f2f54a159aef2555d /src/commodities.lisp | |
| download | transacc-bf191a6f96f19adc74879bc543da3a7027c498da.tar.gz | |
first commit
Diffstat (limited to 'src/commodities.lisp')
| -rw-r--r-- | src/commodities.lisp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/commodities.lisp b/src/commodities.lisp new file mode 100644 index 0000000..2ce7cb7 --- /dev/null +++ b/src/commodities.lisp @@ -0,0 +1,16 @@ +(defpackage :commodities + (:use :cl) + (:export :new-commodity)) + +(in-package :commodities) + +(defclass commodity () + ((name :initarg :name + :reader name) + (price :initarg :price + :accessor price))) + +(defun new-commodity (name price) + (make-instance 'commodity + :name name + :price price)) |
