Drkcore

17 03 2009 lisp Tweet

Common Lispで文字列の分割

いわゆるsplitがないようなので、split-sequenceを入れてみた。

* (require 'split-sequence)

NIL
* (split-sequence:split-sequence #\Space "Yes we    can")

("Yes" "we" "" "" "" "can")
13
* (split-sequence:split-sequence #\Space "Yes we    can" :remove-empty-subseqs t)

("Yes" "we" "can")
13

一方、cl-markdownのほうはThere is no class named NIL.とかいうエラーが分かんなくて詰まり中。

* (cl-markdown:markdown "test mark do wn" :format :html :stream nil)

debugger invoked on a SIMPLE-ERROR in thread \
#<THREAD "initial thread" RUNNING {118FD789}>:
  There is no class named NIL.

んー。とりあえず他のテキストフォーマッターでもいい気がしてきた。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021