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.180 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.179 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.178 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.177 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.176 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.175 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.174 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.173 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.172 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.171 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.170 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.169 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.167 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.166 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.165 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.164 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.163 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.162 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.161 tracks/nim/exercises/acronym/example.nim
trackler-2.2.1.160 tracks/nim/exercises/acronym/example.nim