Created
September 2, 2022 06:37
-
-
Save hamidb80/b6c1b23fd687ba087cf9fe8045b75be5 to your computer and use it in GitHub Desktop.
in response to https://vrgl.ir/GxsSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std/strutils | |
type BookFeatures = enum | |
bfIntroAndDownload = "معرفی و دانلود" | |
bfIntroAndPurchase = "معرفی، خرید و دانلود" | |
bfFreeContent = "رایگان" | |
bfBook = "کتاب" | |
bfAudioBook = "کتاب صوتی" | |
bfPodcast = "پادکست" | |
func genTitle(name: string, features: seq[BookFeatures]): string = | |
features.join" " & ' ' & name | |
echo genTitle("ملت عشق", @[bfIntroAndPurchase, bfBook]) # معرفی، خرید و دانلود کتاب ملت عشق | |
echo genTitle("ملت عشق", @[bfIntroAndDownload, bfFreeContent, bfBook]) # معرفی و دانلود رایگان کتاب ملت عشق | |
echo genTitle("ملت عشق", @[bfIntroAndDownload, bfFreeContent, bfAudioBook]) # معرفی و دانلود رایگان کتاب صوتی ملت عشق | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment