在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 2079|回复: 0

[求助] skill指令求助

[复制链接]
发表于 2021-8-20 15:34:18 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×


   

        

                
  1. signalList = '(
  2. ( nil strength 1.5 )
  3. ( nil strength 0.4 )
  4. ( nil strength 2.5 )
  5. )
  6. sort( signalList
  7. 'lambda( ( a b ) a->strength <= b->strength )
  8. )
            

   

    复制代码


   
The arrow ( -> ) operator gives you a simple way of indirectly accessing properties stored on
a symbol’s property list. The getq function implements the arrow operator. Both the left and
right sides of the -> operator must be symbol。


这段代码我跑了是将signList按从小到大排列,但那个函数是怎么运算的,我查了->的含义,这个函数通过得到strength的属性来进行比较,但我还是不是很明白,列表里面并没有定义strength的属性,那这里又是怎么得到的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-6-8 10:17 , Processed in 0.129103 second(s), 4 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表