Skip to main content

Chialisp 编程

Programming in Chialisp

该视频是使用基本 Chialisp 命令将歌词打印到经典歌曲的区块链版本的练习。

您将学习 Chialisp 基础知识,包括:

  • 打印
  • 调用函数
  • 使用模块
  • 循环数据
  • cons
  • 建立清单
  • 递归
原文参考

This video is an exercise in using fundamental Chialisp commands to print out the lyrics to the blockchain version of a classic song.

You will learn Chialisp basics, including:

  • print
  • calling functions
  • using modules
  • looping over data
  • cons
  • building lists
  • recursion

通过打印歌曲歌词的完整列表来测试您对视频中概念的理解。您的结果应该类似于:


(q. "99 full nodes on the net, 99 full nodes on the net.
Go out of town, your server goes down, 98 full nodes on
the net." "98 full nodes on the net, 98 full nodes on the
net. Go out of town, your server goes down, 97 full nodes
on the net." "97 full nodes on the net, 97 full nodes on
the net. Go out of town, your server goes down, 96 full
nodes on the net." [...] "1 full nodes on the net, 1 full
nodes on the net. Go out of town, your server goes down,
0 full nodes on the net.")

原文参考

Test your understanding of the concepts in the video by printing out the full list of the lyrics of the song. Your result should look similar to:


(q. "99 full nodes on the net, 99 full nodes on the net.
Go out of town, your server goes down, 98 full nodes on
the net." "98 full nodes on the net, 98 full nodes on the
net. Go out of town, your server goes down, 97 full nodes
on the net." "97 full nodes on the net, 97 full nodes on
the net. Go out of town, your server goes down, 96 full
nodes on the net." [...] "1 full nodes on the net, 1 full
nodes on the net. Go out of town, your server goes down,
0 full nodes on the net.")


如果您还有其他问题,请加入 Chia Network 的公共 Keybase 团队 并在 #chialisp 频道中提问。

原文参考

If you have further questions, join Chia Network's public Keybase team and ask in the #chialisp channel.