在网络徽标中连接单词



NetLogo 用户

例如,我想制作一个连接列表的列表

这是列表 1 : [ 0 1 4 6 8]

这是列表2:(单词"(

那么我想列出哪个["0"1"乌

龟4"8"]

我怎么可能做到这一点?

提前谢谢你

请注意,("一词(只是",所以我不太确定你想要什么。 但这应该涵盖它。

to-report append-word [w xs]
  report map [[x] -> (word w " " x)] xs
end
to-report append-words [ws xs]
  report map [[w] -> append-word w xs] ws
end
to test
  let ws ["turtle" "rabbit"]
  let xs [0 1 4 8]
  print append-word item 0 ws xs
  print append-words ws xs
end

最新更新