Before
LISPs
Just Part of the Past
〜 #10 chiku.util 〜
Utility Library
● いつでも使う
● SLIMEでも
●
生インタープリタでも
● 標準ではないことをしばしば忘れる
おしながき
● stride-map family
● Hash Table handling
● Longer or Shorter
● Listing
● misc
Stride Map Family
● 指定個数ずつ要素を飛ばすMAPCAR系の変種
– stride-mapcar
– stride-mapcan
– stride-maplist
– stride-mapcon
Hash Table Handling
● show-hash-table
● MAPHASHの変種
– maphash-key, maphash-value
● keyのみ、valueのみについて走査
– cmaphash-key, cmap...
Hash Table Handling
LOOP?
Longer or Shorter
(< n m) vs. (> m n)
Longer or Shorter
vs.
0
0
Listing
FOUND
in
Amusement Park
LOST
in
Amusement Park
FOUND
in
Super Market
(list 'amusement-park
'super-market)
(list 's...
Listing
● (listing
(cons (found-in 'amusement-park)
'amusement-park)
(cons (found-in 'supermarket)
'supermarket))
● (list/...
misc
● keymax, keymin, check
● wrap-if, wrap-unless
● printing-let
● mvvalues, mvconstantly
● chiku.utilはGithubで公開
– https...
Upcoming SlideShare
Loading in …5
×

Before LISPs just Part of the Past ~ #10 chiku.util ~

3,121
-1

Published on

Some ideas of utilities

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,121
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
2
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Before LISPs just Part of the Past ~ #10 chiku.util ~

  1. 1. Before LISPs Just Part of the Past 〜 #10 chiku.util 〜
  2. 2. Utility Library ● いつでも使う ● SLIMEでも ● 生インタープリタでも ● 標準ではないことをしばしば忘れる
  3. 3. おしながき ● stride-map family ● Hash Table handling ● Longer or Shorter ● Listing ● misc
  4. 4. Stride Map Family ● 指定個数ずつ要素を飛ばすMAPCAR系の変種 – stride-mapcar – stride-mapcan – stride-maplist – stride-mapcon
  5. 5. Hash Table Handling ● show-hash-table ● MAPHASHの変種 – maphash-key, maphash-value ● keyのみ、valueのみについて走査 – cmaphash-key, cmaphash-value ● 結果を収集
  6. 6. Hash Table Handling LOOP?
  7. 7. Longer or Shorter (< n m) vs. (> m n)
  8. 8. Longer or Shorter vs. 0 0
  9. 9. Listing FOUND in Amusement Park LOST in Amusement Park FOUND in Super Market (list 'amusement-park 'super-market) (list 'super-market) LOST in Super Market (list 'amusement-park) NIL
  10. 10. Listing ● (listing (cons (found-in 'amusement-park) 'amusement-park) (cons (found-in 'supermarket) 'supermarket)) ● (list/det ; Macro interface ((found-in amusement-park) 'amusement-park) ((found-in supermarket) 'supermarket))
  11. 11. misc ● keymax, keymin, check ● wrap-if, wrap-unless ● printing-let ● mvvalues, mvconstantly ● chiku.utilはGithubで公開 – https://github.com/chiku-samugari/chiku.util
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×