Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
sta
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 




sta : Parse tokens from an string into an array

Overview

sta extract the words from a string, and store those words in an array. The words are separated by an space/s.

Install

pip install sta

Usage

import sta

print(sta('this string is divided by spaces'))
# => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]

API

sta('string')

Return an array with each token

Return Type: list

Related

  • str-to-arr: convert an string into an array in JavaScript.
  • s-to-o: convert an string into an object in JavaScript.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham