Support string/contains?
Simple wrapper around s-contains? but in the interest of avoiding a mixture of s.el and stirng.el functions, the wrapper was defined.
This commit is contained in:
		
							parent
							
								
									fa681ffdf0
								
							
						
					
					
						commit
						068a648736
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -22,6 +22,10 @@
 | 
				
			||||||
(defconst string/test? t
 | 
					(defconst string/test? t
 | 
				
			||||||
  "When t, run the tests.")
 | 
					  "When t, run the tests.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(defun string/contains? (c x)
 | 
				
			||||||
 | 
					  "Return t if X is in C."
 | 
				
			||||||
 | 
					  (s-contains? c x))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(defun string/hookify (x)
 | 
					(defun string/hookify (x)
 | 
				
			||||||
  "Append \"-hook\" to X."
 | 
					  "Append \"-hook\" to X."
 | 
				
			||||||
  (s-append "-hook" x))
 | 
					  (s-append "-hook" x))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue