6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

言語処理100本ノック with Nim 第1章: 準備運動

Posted at

Nimを勉強することになったのでとりあえず言語処理100本ノックをNimでやってみる。
Nimの文法などもメモしていく。随時更新予定。

00. 文字列の逆順

文字列"stressed"の文字を逆に(末尾から先頭に向かって)並べた文字列を得よ.

unicodeモジュールのreversedを使う。

import unicode

proc e_00*(s: string): string =
    result = s.reversed

参考

6
3
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?