oeis2 1.0.6 → 1.0.7
raw patch · 2 files changed
+31/−31 lines, 2 filesdep ~aesondep ~lens-aeson
Dependency ranges changed: aeson, lens-aeson
Files
- README.md +27/−27
- oeis2.cabal +4/−4
README.md view
@@ -1,6 +1,6 @@ # oeis2 -[](https://travis-ci.org/23prime/oeis2)+[](https://github.com/23prime/oeis2/actions/workflows/test.yml) [](https://www.haskell.org) [](https://hackage.haskell.org/package/oeis2) [](https://www.stackage.org/package/oeis2)@@ -27,41 +27,41 @@ - Get all search results from sub-sequence - - If `n == 0`, you get all search results.+ - If `n == 0`, you get all search results. - ```haskell- ghci>searchSeq (SubSeq [1,2,3,4]) 0- [OEIS {number = "A000027", ids = ["M0472","N0173"], seqData = [1,2,3,4,5,6,7,...- ghci>length it- 53- ```+ ```haskell+ ghci>searchSeq (SubSeq [1,2,3,4]) 0+ [OEIS {number = "A000027", ids = ["M0472","N0173"], seqData = [1,2,3,4,5,6,7,...+ ghci>length it+ 53+ ``` - - Otherwise, you get first `n` search results.+ - Otherwise, you get first `n` search results. - ```haskell- ghci>searchSeq (SubSeq [1,2,3,4]) 17- [OEIS {number = "A000027", ids = ["M0472","N0173"], seqData = [1,2,3,4,5,6,7,8,9,- ghci>length it- 17- ```+ ```haskell+ ghci>searchSeq (SubSeq [1,2,3,4]) 17+ [OEIS {number = "A000027", ids = ["M0472","N0173"], seqData = [1,2,3,4,5,6,7,8,9,+ ghci>length it+ 17+ ``` - Get first few terms from sub-sequence - ```haskell- ghci>getSeqData (SubSeq [1,2,2,3,3,3,4,4,4,4])- Just [1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,...- ```+ ```haskell+ ghci>getSeqData (SubSeq [1,2,2,3,3,3,4,4,4,4])+ Just [1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,...+ ``` - Get Mathematica function from sub-sequence - ```haskell- ghci>mathematica <$> lookupSeq (SubSeq [1,2,2,3,3,3,4,4,4,4])- Just ["a[1] = 1; a[n_] := a[n] = a[n - a[n - 1]] + 1 (* _Branko Curgus_, May 12 2009 *)","Table[n, {n, 13}, {n}] // Flatten (* _Robert G. Wilson v_, May 11 2010 *)"]- ```+ ```haskell+ ghci>mathematica <$> lookupSeq (SubSeq [1,2,2,3,3,3,4,4,4,4])+ Just ["a[1] = 1; a[n_] := a[n] = a[n - a[n - 1]] + 1 (* _Branko Curgus_, May 12 2009 *)","Table[n, {n, 13}, {n}] // Flatten (* _Robert G. Wilson v_, May 11 2010 *)"]+ ``` - If no search result - ```haskell- ghci>lookupSeq (ID "1145141919893")- Nothing- ```+ ```haskell+ ghci>lookupSeq (ID "1145141919893")+ Nothing+ ```
oeis2.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: cbf0bcc989fbd04f42d9aa54239340e10b676b763e62854aaf7d124a6d7c9398+-- hash: d12ab6c84c2584d3b6f205f5db01501658692c007dbabf678896c297b60ea3bc name: oeis2-version: 1.0.6+version: 1.0.7 synopsis: Interface for Online Encyclopedia of Integer Sequences (OEIS). description: Release notes are here https://github.com/23prime/oeis2/releases category: Math@@ -41,7 +41,7 @@ , containers >=0.5 && <0.7 , http-conduit >=2.2 && <2.4 , lens >=4.15 && <6- , lens-aeson >=1.0 && <1.2+ , lens-aeson >=1.0 && <2 , text ==1.2.* , vector ==0.12.* default-language: Haskell2010@@ -62,7 +62,7 @@ , hspec , http-conduit >=2.2 && <2.4 , lens >=4.15 && <6- , lens-aeson >=1.0 && <1.2+ , lens-aeson >=1.0 && <2 , oeis2 , text ==1.2.* , vector ==0.12.*