File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 418
418
:points-for-generator (classmethod (fn [cls] ~points-gen))
419
419
:flavor ~flavor-mon
420
420
:flavor-for-generator ~flavor-gen
421
- ~@(sum :start [] (gfor
421
+ ~@(hy.I.toolz.concat (gfor
422
422
[k v] (.items kwargs)
423
423
[(hy.models.Keyword k) v])))
424
424
Original file line number Diff line number Diff line change 2
2
3
3
4
4
(import
5
+ toolz [concat]
5
6
metadict [MetaDict]
6
7
simalq.color
7
8
simalq.game-state [G]
97
98
:href (+ " #" tile.id)))))))))
98
99
99
100
; One section of info screens per superclass
100
- #* (cat (gfor
101
+ #* (concat (gfor
101
102
[superclass-name tiles] (.items info)
102
- [(E.h2 superclass-name) #* (cat (gfor
103
+ [(E.h2 superclass-name) #* (concat (gfor
103
104
; One info screen per tile type
104
105
tile tiles
105
106
[(E.h3 (mapsym tile) tile.long-name :id tile.id)
131
132
(if self-closing " " f" </{(hesc tag)}>" )))
132
133
133
134
134
- (defn cat [l]
135
- (sum :start [] l))
136
-
137
-
138
135
(when (= __name__ " __main__" )
139
136
(print (html )))
Original file line number Diff line number Diff line change 5
5
(require
6
6
hyrule [do-n unless ])
7
7
(import
8
+ toolz [concat]
8
9
metadict [MetaDict]
9
10
simalq.geometry [Pos at Direction]
10
11
simalq.un-iq [iq-quest]
82
83
(hy.I.simalq/tile.Player :pos (Pos model player-x player-y)))
83
84
(assert (= G.map.width model.width))
84
85
(assert (= G.map.height model.height))
85
- (for [[stack-actual stack-expected] (zip (sum :start #() G.map.data) (sum :start #() model.data))]
86
+ (for [[stack-actual stack-expected]
87
+ (zip (concat G.map.data) (concat model.data))]
86
88
(assert (= (len stack-actual) (len stack-expected)))
87
89
(for [[t-actual t-expected] (zip stack-actual stack-expected)]
88
90
(assert (= t-actual.stem t-expected.stem)))))
You can’t perform that action at this time.
0 commit comments