Sha256: 9f27a25f6d603611df54f9d6a18064041c1990e316c739bd46797d00a27976b9

Contents?: true

Size: 182 Bytes

Versions: 37

Compression:

Stored size: 182 Bytes

Contents

import
  strutils, sequtils 

proc abbreviate*(phrase: string): string =
  let words = phrase.split({' ', '-', ','}).filterIt(it.isAlphaAscii)
  words.mapIt(it[0].toUpperAscii).join

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.158 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.157 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.156 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.155 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.154 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.153 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.152 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.151 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.150 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.149 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.148 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.147 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.146 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.145 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.144 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.143 tracks/nim/exercises/acronym/example.nim