Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #3000275 // Answer for stefanreich (>> calc tocons(eval(c# example)))

New Tinybrain snippet

TRUE.
```
$e1 = [public List < List < string > > GetSentences ([List < string > paragraph]) { List < List < string > > sentences = new List < List < string > > ([]) ; List < string > tempSentence = new List < string > ([]) ; foreach ([string s in paragraph]) { if ([s = = "." | | s = = "!" | | s = = "?"]) { sentences . Add (tempSentence) ; tempSentence = new List < string > ([]) ; } else { tempSentence . Add (s) ; } } return sentences ; }]
$x = [cons public [cons List [cons < [cons List [cons < [cons string [cons > [cons > [cons GetSentences [cons ([List < string > paragraph]) [cons { [cons List [cons < [cons List [cons < [cons string [cons > [cons > [cons sentences [cons = [cons new [cons List [cons < [cons List [cons < [cons string [cons > [cons > [cons ([]) [cons ; [cons List [cons < [cons string [cons > [cons tempSentence [cons = [cons new [cons List [cons < [cons string [cons > [cons ([]) [cons ; [cons foreach [cons ([string s in paragraph]) [cons { [cons if [cons ([s = = "." | | s = = "!" | | s = = "?"]) [cons { [cons sentences [cons . [cons Add [cons (tempSentence) [cons ; [cons tempSentence [cons = [cons new [cons List [cons < [cons string [cons > [cons ([]) [cons ; [cons } [cons else [cons { [cons tempSentence [cons . [cons Add [cons (s) [cons ; [cons } [cons } [cons return [cons sentences [cons ; [cons } end]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
```
[done] 79 ms

download  show line numbers   

Snippet is not live.

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #3000275
Snippet name: Answer for stefanreich (>> calc tocons(eval(c# example)))
Eternal ID of this version: #3000275/1
Text MD5: c040f912c2090f8d694f85352cacd6a8
Author: someone
Category:
Type: New Tinybrain snippet
Gummipassword: eleutheria-for-user
Uploaded from IP: 69.10.46.185
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-11 00:45:10
Source code size: 1432 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 83
Referenced in: [show references]