⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 repeat

📁 EPIC IRC客户端。来源于IRCII客户端但做了很多性能和功能的优化。
💻
字号:
/* * Repeat -- a zillion and one ways to do the classic alias... *//* * REPEAT is now a built in command in EPIC3.003 and up. * That means you dont need this script any more. *//* * Post-modern format: * Requires EPIC4-0.9.17 and up * Method: Iterative loop * Can be called recursively?  Yes. (/for uses local variables) */: alias repeat {:	for aa from 1 to $0 { $1- }: }/* * Modern format: * Requires: EPIC4pre0 and up * Method: word-selection * Can be called recursively?  Yes. (/fe uses local variables now) */: alias repeat {: 	fe ($jot(1 $0)) aa { $1- }: }/* * Modern format: * Requires: EPIC3pre5 and up * Method: word-selection * Can be called recursively?  Yes. (global variables and push) */: alias repeat {: 	stack push assign aaa.r: 	fe ($jot(1 $0)) aaa.r { $1- }: 	stack pop assign aaa.r: }/* * Modern format: * Requires ircII2.2.9+6 and up. * Method: word-selection * Can be called recursively?  No. (no local variables in epic yet) */: alias repeat fe ($jot(1 $0)) r.x {$1-}/* * Modern format: * Requires ircII2.2.9+5 and up. * Method: iterative * Can be called recursively?  No. */: alias repeat for (@rx=0,$rx < [$0],@rx++) {$1-}/* * New format: * Requires 2.2pre6 and up * Method: iterative * Can be called recursively?  No. */: alias repeat {: 	@ rep.cnt = [$0]: 	while ( rep.cnt > 0 ): 	{: 		$1-: 		@rep.cnt = rep.cnt - 1: 	}: 	^assign -rep.cnt: }/* * New format: * Requires 2.2pre6 and up * Method: recursion * Can be called recursively? Yes. */: alias repeat {: 	if ([$0] > 0): 	{: 		$1-: 		repeat ${[$0]-1} $1-: 	}: }/* * Old format: * Requires 2.2pre5 or older. * Method: Iterative * Can be called recursively?  No. */: alias repeat ^assign repcnt $0;while "$repcnt>$0" "decrement $1-";^assign -repcnt: alias decrement $*;^assign repcnt ${$repcnt-1}#hop'96

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -