[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.7981300 [View]
File: 54 KB, 600x600, Haskell.sh-600x600[1].png [View same] [iqdb] [saucenao] [google]
7981300

there's only one way to fix it

>> No.7567827 [View]
File: 54 KB, 600x600, Haskell.png [View same] [iqdb] [saucenao] [google]
7567827

I'm currently learning Haskell and I want to reverse all elements of a list of Strings but the first and the last one.

I have tried it now for a while but I can't figure out how to not reverse the last element. Any ideas?

asdf :: [String] -> [String]
asdf (x : xs) = x : (reverse xs)

>> No.6691179 [DELETED]  [View]
File: 54 KB, 600x600, Haskell.sh-600x600.png [View same] [iqdb] [saucenao] [google]
6691179

What do you guys think about functional programming?

Ive been studying Haskell for fun in the past year and its been a great experience. However, does functional programming have any technical applications? Is it any use to mention it in one's CV?

Navigation
View posts[+24][+48][+96]