[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 0326ad4081 318/472: Add module for working with ve
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 0326ad4081 318/472: Add module for working with vectors (#159) |
Date: |
Thu, 6 Jan 2022 21:59:35 -0500 (EST) |
branch: elpa/pacmacs
commit 0326ad40813a6db708c626a95ad3cc33a8a58b72
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Add module for working with vectors (#159)
---
pacmacs-vector.el | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/pacmacs-vector.el b/pacmacs-vector.el
new file mode 100644
index 0000000000..2d21b554ac
--- /dev/null
+++ b/pacmacs-vector.el
@@ -0,0 +1,51 @@
+;;; pacmacs-vector.el --- Pacman for Emacs -*- lexical-binding: t -*-
+
+;; Copyright (C) 2015 Codingteam
+
+;; Author: Codingteam <codingteam@conference.jabber.ru>
+;; Maintainer: Alexey Kutepov <reximkut@gmail.com>
+;; URL: http://github.com/rexim/pacmacs.el
+
+;; Permission is hereby granted, free of charge, to any person
+;; obtaining a copy of this software and associated documentation
+;; files (the "Software"), to deal in the Software without
+;; restriction, including without limitation the rights to use, copy,
+;; modify, merge, publish, distribute, sublicense, and/or sell copies
+;; of the Software, and to permit persons to whom the Software is
+;; furnished to do so, subject to the following conditions:
+
+;; The above copyright notice and this permission notice shall be
+;; included in all copies or substantial portions of the Software.
+
+;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+;; BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+;; ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+;; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+;; SOFTWARE.
+
+;;; Commentary:
+
+;; Routines for working with vector
+
+;;; Code:
+
+(defun pacmacs--vector-components-operation (vector1 vector2 operation)
+ (-let (((row1 . column1) vector1)
+ ((row2 . column2) vector2))
+ (cons (funcall operation row1 row2)
+ (funcall operation column1 column2))))
+
+(defun pacmacs--vector+ (vector1 vector2)
+ (pacmacs--vector-components-operation
+ vector1 vector2 #'+))
+
+(defun pacmacs--vector- (vector1 vector2)
+ (pacmacs--vector-components-operation
+ vector1 vector2 #'-))
+
+(provide 'pacmacs-vector)
+
+;;; pacmacs-vector.el ends here
- [nongnu] elpa/pacmacs af3407e676 047/472: Sprite sheets as part of anim object. Close #24, (continued)
- [nongnu] elpa/pacmacs af3407e676 047/472: Sprite sheets as part of anim object. Close #24, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs edf7b2d1b3 069/472: Use plist-bind macro for pacman-anim-get-frame (#54), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 61b07fd669 252/472: Add some screenshot of the latest version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f1f7f6f407 256/472: Animated big pills (#81), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 69437be130 259/472: Extra points for eating big pills (#81), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4ef8e6cdb4 260/472: Merge branch 'big-pills-81'. Close #81, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 59685e56a4 261/472: Clean elc in `tools/compile.el` script. Close #147, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 31de569656 273/472: Extend pacmacs--normalize-wall-bits UT, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4624b8a64c 307/472: Rename ghost-blinking-threshold cons (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs af0fe59457 309/472: Fix FIXME regarding Emacs 24.3 support (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0326ad4081 318/472: Add module for working with vectors (#159),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 84598f8f20 328/472: UT for pacmacs--load-next-level, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4862789072 335/472: Terrify/unterrify ghost without losing state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1e4d6cd8b7 340/472: UT for terrified-ghost function (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3e25c67590 345/472: Add script for semi-automatic ATT measuring, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 70d381a0ca 362/472: UT for terrify-all-ghosts (#173), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs dec42c790d 374/472: Update the screenshots, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 10705b45c5 376/472: Rename bits-to-xpm to wall-tile-to-xpm (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a5583b6255 377/472: Fix wall-tile-to-xpm UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 93f031ae4e 382/472: Fix create-wall-tile UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2c7e23070b 380/472: Fix put-vertical-bar UT (#138), ELPA Syncer, 2022/01/06