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

10
Before LISPs Just Part of the Past #10 chiku.util

description

Some ideas of utilities

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

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

BeforeLISPs

Just Part of the Past

〜 #10 chiku.util 〜

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

Utility Library● いつでも使う● SLIMEでも● 生インタープリタでも● 標準ではないことをしばしば忘れる

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

おしながき

● stride-map family● Hash Table handling● Longer or Shorter● Listing● misc

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

Stride Map Family

● stride-mapcar● stride-mapcan● stride-maplist● stride-mapcon

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

Hash Table Handling

● show-hash-table● maphash-key, maphash-value● cmaphash-key, cmaphash-value

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

Hash Table Handling

LOOP?

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

Longer or Shorter

(< n m) vs. (> m n)

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

Longer or Shorter

vs.0

0

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

Listing

FOUNDin

Amusement Park

LOSTin

Amusement Park

FOUNDin

Super Market

(list 'amusement-park'super-market)

(list 'super-market)

LOSTin

Super Market(list 'amusement-park) NIL

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

misc

● keymax, keymin, check● wrap-if, wrap-unless● printing-let● mvvalues, mvconstantly